Class AccessPlatformClient
Properties
Private
password
password: string
Private
username
username: string
Accessors
Private
isAuthenticated
- get isAuthenticated(): boolean
-
Returns boolean
Methods
Private
attemptChallenge
- attemptChallenge(flowId, deviceId, clientId, accessToken, authContextId, availableChallenges): Promise<string>
-
Parameters
-
flowId: string
-
deviceId: string
-
clientId: string
-
accessToken: string
-
authContextId: string
-
Returns Promise<string>
Private
createIntermediateAccessToken
- createIntermediateAccessToken(deviceId, clientId, clientSecret, authCode?): Promise<string>
-
Parameters
-
deviceId: string
-
clientId: string
-
clientSecret: string
-
Optional
authCode: string
Returns Promise<string>
Private
createSessionFromAuthorizationCode
- createSessionFromAuthorizationCode(deviceId, clientId, clientSecret, authorizationCode): TSession
-
Parameters
-
deviceId: string
-
clientId: string
-
clientSecret: string
-
Private
evaluateAuth
- evaluateAuth(flowId, deviceId, clientId, accessToken, captchaToken?): Promise<TEvaluateAuthResponse>
-
Parameters
-
flowId: string
-
deviceId: string
-
clientId: string
-
accessToken: string
-
Optional
captchaToken: string
getAccessToken
- getAccessToken(): Promise<string>
-
Returns Promise<string>
Private
getOTPCode
- getOTPCode(type): Promise<string>
-
Returns Promise<string>
getUsername
- getUsername(): string
-
Returns string
Private
hydrateSession
- hydrateSession(): undefined | {
accessToken: string;
clientId: string;
clientSecret: string;
deviceId: string;
refreshToken: string;
refreshTokenExpiresAt: number;
}
-
Returns undefined | {
accessToken: string;
clientId: string;
clientSecret: string;
deviceId: string;
refreshToken: string;
refreshTokenExpiresAt: number;
}
Private
refreshOrCreateSession
Private
requestOTPToken
- requestOTPToken(flowId, deviceId, accessToken, authContextId, type): Promise<void>
-
Parameters
-
flowId: string
-
deviceId: string
-
accessToken: string
-
authContextId: string
-
Returns Promise<void>
Private
revokeSession
- revokeSession(): Promise<void>
-
Returns Promise<void>
Private
submitChallenge
- submitChallenge(flowId, deviceId, clientId, accessToken, authContextId, type, value): Promise<TVerifySignInResponse>
-
Parameters
-
flowId: string
-
deviceId: string
-
clientId: string
-
accessToken: string
-
authContextId: string
-
-
value: string
Private
submitOTPChallenge
- submitOTPChallenge(flowId, deviceId, clientId, accessToken, authContextId, type): Promise<string>
-
Parameters
-
flowId: string
-
deviceId: string
-
clientId: string
-
accessToken: string
-
authContextId: string
-
Returns Promise<string>
Private
submitPasswordChallenge
- submitPasswordChallenge(flowId, deviceId, clientId, accessToken, authContextId): Promise<string>
-
Parameters
-
flowId: string
-
deviceId: string
-
clientId: string
-
accessToken: string
-
authContextId: string
Returns Promise<string>