OAuthProvider

@accounts/oauthGlobalsOAuthProvider

Interface to use for all custom implementations of OAuth providers

Hierarchy

  • OAuthProvider

Index

Properties

Properties

authenticate

authenticate: function

Defined in types/oauth-provider.ts:10

Should return oauth user payload from passed authentication code or token

Type declaration:

▸ (params: any): Promise‹OAuthUser

Parameters:

NameType
paramsany

Optional getRegistrationPayload

getRegistrationPayload? : function

Defined in types/oauth-provider.ts:14

Allows to provide function to create custom payload for user creation method based on data from OAuth API

Type declaration:

▸ (oauthUser: OAuthUser): Promise‹any›

Parameters:

NameType
oauthUserOAuthUser