@arkadiuminc/sdk
Advanced tools
Comparing version 2.8.1 to 2.9.0
@@ -30,2 +30,3 @@ import { ApiEnv, Backend } from '../backend/backend.api'; | ||
private authUIManager; | ||
private authProblem; | ||
constructor(userProfileReader: UserProfileReaderContract, authUIManager: AuthUIManagerContract); | ||
@@ -37,2 +38,14 @@ init(env: ApiEnv): Promise<void>; | ||
openAuthForm(): Promise<void>; | ||
/** | ||
* this method should be exercised on the game side to let game know about | ||
* issues that happen during auth outside the scope of direct API calls | ||
*/ | ||
onAuthProblemChange(observer: any): Promise<void>; | ||
/** | ||
* this method should be internally called every time a problem happens | ||
* outside the scope of direct API calls | ||
* @private | ||
* @param error string | ||
*/ | ||
raiseOnAuthProblem(error: string): void; | ||
onOpenAuthForm(observer: any): () => void; | ||
@@ -39,0 +52,0 @@ static getArenaApi(backendApi: Backend, host: IHost, rpcProvider: RpcProvider): Auth; |
@@ -38,3 +38,11 @@ import { Client as NakamaApiClient, Session as NakamaSession } from '@heroiclabs/nakama-js'; | ||
private onAuthBootstrap; | ||
/** | ||
* this method is called when the user is logged in | ||
* CAUTION: this method is called from eagle login status change, therefore it can't throw | ||
*/ | ||
private onEagleLogIn; | ||
/** | ||
* this method is called when the user is logged out | ||
* CAUTION: this method is called from eagle login status change, therefore it can't throw | ||
*/ | ||
private onEagleLogOut; | ||
@@ -41,0 +49,0 @@ private getAccount; |
{ | ||
"name": "@arkadiuminc/sdk", | ||
"version": "2.8.1", | ||
"version": "2.9.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46372
1057