diff --git a/package.json b/package.json index 20da7c9..6d07410 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@openfort/openfort-js", - "version": "0.6.13", + "version": "0.6.14", "description": "", "author": "Openfort", "repository": { diff --git a/src/clients/iframe-client.ts b/src/clients/iframe-client.ts index 69fda7c..6ee6c7b 100644 --- a/src/clients/iframe-client.ts +++ b/src/clients/iframe-client.ts @@ -209,6 +209,7 @@ export class IframeClient { } async updateAuthentication(token: string): Promise { + this._configuration.accessToken = token; await this.waitForIframeLoad(); const uuid = this.generateShortUUID(); const request = new UpdateAuthenticationRequest(uuid, token); diff --git a/src/openfort.ts b/src/openfort.ts index 1e861c4..bbc4f4d 100644 --- a/src/openfort.ts +++ b/src/openfort.ts @@ -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; } diff --git a/src/version.ts b/src/version.ts index 310c431..9050f5f 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1,2 +1,2 @@ -export const VERSION = "0.6.13"; +export const VERSION = "0.6.14"; export const PACKAGE = "@openfort/openfort-js";