Skip to content

Commit

Permalink
fix: update token for third party
Browse files Browse the repository at this point in the history
  • Loading branch information
gllm-dev committed May 10, 2024
1 parent 6c1ef14 commit 79dd8fa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openfort/openfort-js",
"version": "0.6.13",
"version": "0.6.14",
"description": "",
"author": "Openfort",
"repository": {
Expand Down
1 change: 1 addition & 0 deletions src/clients/iframe-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ export class IframeClient {
}

async updateAuthentication(token: string): Promise<void> {
this._configuration.accessToken = token;
await this.waitForIframeLoad();
const uuid = this.generateShortUUID();
const request = new UpdateAuthenticationRequest(uuid, token);
Expand Down
1 change: 1 addition & 0 deletions src/openfort.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ export default class Openfort {
const result = await OpenfortAuth.AuthenticateThirdParty(this._publishableKey, provider, token, tokenType);
this._instanceManager.setAccessToken({token, thirdPartyProvider: provider, thirdPartyTokenType: tokenType});
this._instanceManager.setPlayerID(result.id);
await this._signer.updateAuthentication();
return result;
}

Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const VERSION = "0.6.13";
export const VERSION = "0.6.14";
export const PACKAGE = "@openfort/openfort-js";

0 comments on commit 79dd8fa

Please sign in to comment.