Methods
- addEmail(newEmail: string, customHeaders?: object): Promise<void>
Parameters
newEmail: string
optionalcustomHeaders: object
Returns Promise<void>
- authFetch(route: string, args: object, customHeaders?: object): Promise<any>
Parameters
route: string
args: object
customHeaders: object = {}
Returns Promise<any>
- authenticateWithService(provider: string, data: any, customHeaders?: object): Promise<boolean>
Parameters
provider: string
data: any
optionalcustomHeaders: object
Returns Promise<boolean>
- changePassword(oldPassword: string, newPassword: string, customHeaders?: object): Promise<void>
Parameters
oldPassword: string
newPassword: string
optionalcustomHeaders: object
Returns Promise<void>
- createUser(user: CreateUser, customHeaders?: object): Promise<CreateUserResult>
Parameters
user: CreateUser
optionalcustomHeaders: object
Returns Promise<CreateUserResult>
- fetch(route: string, args: object, customHeaders?: object): Promise<any>
Parameters
route: string
args: object
customHeaders: object = {}
Returns Promise<any>
- getTwoFactorSecret(customHeaders?: object): Promise<any>
Parameters
optionalcustomHeaders: object
Returns Promise<any>
- getUser(customHeaders?: object): Promise<User>
Parameters
optionalcustomHeaders: object
Returns Promise<User>
- impersonate(accessToken: string, impersonated: ImpersonationUserIdentity, customHeaders?: object): Promise<ImpersonationResult>
Parameters
accessToken: string
impersonated: ImpersonationUserIdentity
optionalcustomHeaders: object
Returns Promise<ImpersonationResult>
- loginWithService(provider: string, data: any, customHeaders?: object): Promise<LoginResult>
Parameters
provider: string
data: any
optionalcustomHeaders: object
Returns Promise<LoginResult>
- logout(customHeaders?: object): Promise<void>
Parameters
optionalcustomHeaders: object
Returns Promise<void>
- refreshTokens(accessToken: string, refreshToken: string, customHeaders?: object): Promise<LoginResult>
Parameters
accessToken: string
refreshToken: string
optionalcustomHeaders: object
Returns Promise<LoginResult>
- requestMagicLinkEmail(email: string, customHeaders?: object): Promise<void>
Parameters
email: string
optionalcustomHeaders: object
Returns Promise<void>
- resetPassword(token: string, newPassword: string, customHeaders?: object): Promise<any>
Parameters
token: string
newPassword: string
optionalcustomHeaders: object
Returns Promise<any>
- sendResetPasswordEmail(email: string, customHeaders?: object): Promise<void>
Parameters
email: string
optionalcustomHeaders: object
Returns Promise<void>
- sendVerificationEmail(email: string, customHeaders?: object): Promise<void>
Parameters
email: string
optionalcustomHeaders: object
Returns Promise<void>
- twoFactorSet(secret: any, code: string, customHeaders?: object): Promise<void>
Parameters
secret: any
code: string
optionalcustomHeaders: object
Returns Promise<void>
- twoFactorUnset(code: string, customHeaders?: object): Promise<void>
Parameters
code: string
optionalcustomHeaders: object
Returns Promise<void>
- verifyEmail(token: string, customHeaders?: object): Promise<void>
Parameters
token: string
optionalcustomHeaders: object
Returns Promise<void>