Accessors
providers
- get providers(): Record<string, ((ctx: Context) => OAuth<any>)>
-
Returns Record<string, ((ctx: Context) => OAuth<any>)>
Methods
authorize
- authorize(type: string): Promise<void>
-
Returns Promise<void>
Protected
createByExternal
- createByExternal(type: string, profile: Profile): Promise<User>
-
Returns Promise<User>
Protected
getByExternal
- getByExternal(type: string, profile: Profile): Promise<undefined | User>
-
Returns Promise<undefined | User>
Protected
getOrCreateByExternal
- getOrCreateByExternal(type: string, profile: Profile): Promise<User>
-
Returns Promise<User>
Protected
setExternalForUser
- setExternalForUser(user: User, type: string, profile: Profile): Promise<User>
-
Returns Promise<User>