AccountsOauth

@accounts/oauthGlobalsAccountsOauth

Hierarchy

  • AccountsOauth

Implements

  • AuthenticationService

Index

Constructors

Properties

Methods

Constructors

constructor

+ new AccountsOauth(options: OAuthOptions): AccountsOauth

Defined in accounts-oauth.ts:16

Parameters:

NameType
optionsOAuthOptions

Returns: AccountsOauth

Properties

server

server: AccountsServer

Defined in accounts-oauth.ts:13


serviceName

serviceName: string = "oauth"

Defined in accounts-oauth.ts:14

Methods

authenticate

authenticate(params: any): Promise‹User | null›

Defined in accounts-oauth.ts:26

Parameters:

NameType
paramsany

Returns: Promise‹User | null›


setStore

setStore(store: DatabaseInterface): void

Defined in accounts-oauth.ts:22

Parameters:

NameType
storeDatabaseInterface

Returns: void


unlink

unlink(userId: string, provider: string): Promise‹void›

Defined in accounts-oauth.ts:71

Parameters:

NameType
userIdstring
providerstring

Returns: Promise‹void›