AccountsGraphQLClient
Implements
- unknown
Index
Constructors
constructor
Parameters
options: OptionsType
Returns default
Properties
publicclient
Methods
publicaddEmail
Parameters
newEmail: string
Returns Promise<void>
publicauthenticateWithService
Parameters
service: string
authenticateParams: {}
Returns Promise<boolean>
publicchangePassword
Parameters
oldPassword: string
newPassword: string
Returns Promise<void>
publiccreateUser
Create a user with basic user info
Parameters
user: CreateUser
user object
Returns Promise<CreateUserResult>
contains user's ID and LoginResult object if autologin is enabled
publicgetTwoFactorSecret
Returns Promise<any>
publicgetUser
Returns Promise<User>
publicimpersonate
Parameters
token: string
impersonated: { email?: string; userId?: string; username?: string }
Returns Promise<ImpersonationResult>
publicloginWithService
Parameters
service: string
authenticateParams: AuthenticateParams
Returns Promise<LoginResult>
publiclogout
Returns Promise<void>
publicrefreshTokens
Parameters
accessToken: string
refreshToken: string
Returns Promise<LoginResult>
publicrequestMagicLinkEmail
Parameters
email: string
Returns Promise<void>
publicresetPassword
Parameters
token: string
newPassword: string
Returns Promise<any>
publicsendResetPasswordEmail
Parameters
email: string
Returns Promise<void>
publicsendVerificationEmail
Parameters
email: string
Returns Promise<void>
publictwoFactorSet
Parameters
secret: any
code: string
Returns Promise<void>
publictwoFactorUnset
Parameters
code: string
Returns Promise<void>
publicverifyEmail
Parameters
token: string
Returns Promise<void>