auth0Handler(request, response, next, domain, clientId, clientSecret, callback?)
Parameters
request
response
next
- type:
Express.NextFunction
domain
- type:
string
- description: Auth0 domain for your application
clientId
- type:
string
- description: Auth0 client ID
clientSecret
- type:
string
- description: Auth0 client secret
callback
(Optional)
- type:
function (userId: string, auth0IdToken: string, auth0AccessToken: string, auth0RefreshToken: string | undefined) => void
- description: Function that can be used to create a SuperTokens session manually.
Returns
Promise<Express.Response>
Throws