Skip to main content

OAuthProvider

Interface to use for all custom implementations of OAuth providers

Index

Properties

authenticate

authenticate: (params: any) => Promise<OAuthUser>

Should return oauth user payload from passed authentication code or token


Type declaration

optionalgetRegistrationPayload

getRegistrationPayload?: (oauthUser: OAuthUser) => Promise<any>

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


Type declaration