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

    • Should return oauth user payload from passed authentication code or token


      Parameters

      • params: any

      Returns Promise<OAuthUser>

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

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


      Parameters

      Returns Promise<any>