The SDK server instance.

This is created for you when you use the named exports, or you can create your own using InitAuth0.

See ConfigParameters for more info.

Hierarchy

  • Auth0Server

Properties

getAccessToken: GetAccessToken

Access token getter.

getSession: GetSession

Session getter.

handleAuth: HandleAuth

Create the main handlers for your api routes.

handleBackchannelLogout: HandleBackchannelLogout

Logout handler which will clear the local session and the Auth0 session.

handleCallback: HandleCallback

Callback handler which will complete the transaction and create a local session.

handleLogin: HandleLogin

Login handler which will redirect the user to Auth0.

handleLogout: HandleLogout

Logout handler which will clear the local session and the Auth0 session.

handleProfile: HandleProfile

Profile handler which return profile information about the user.

touchSession: TouchSession

Update the expiry of a rolling session when autoSave is disabled.

updateSession: UpdateSession

Append properties to the user.

withApiAuthRequired: WithApiAuthRequired

Helper that adds auth to an API route.

withMiddlewareAuthRequired: WithMiddlewareAuthRequired

Add auth to your middleware functions.

withPageAuthRequired: WithPageAuthRequired

Helper that adds auth to a Page route.