endpoint
Esta página aún no está disponible en tu idioma.
Variables
Section titled “Variables”initCallback
Section titled “initCallback”const initCallback: APIRoute;
Defined in: studiocms/packages/@studiocms/auth0/src/endpoint.ts:34^
Handles the Auth0 OAuth callback endpoint.
This API route initializes the Auth0 OAuth callback process by invoking the initCallback
method from the Auth0OAuthAPI
. It uses the Effect system to manage dependencies and
asynchronous control flow, providing the default implementation of Auth0OAuthAPI
.
The API context containing request and response objects.
Returns
Section titled “Returns”A promise resolving to the result of the Auth0 OAuth callback process.
initSession
Section titled “initSession”const initSession: APIRoute;
Defined in: studiocms/packages/@studiocms/auth0/src/endpoint.ts:16^
API route handler for initializing an Auth0 session.
This function uses the Effect system to compose asynchronous operations,
retrieving the initSession
method from the Auth0OAuthAPI
and invoking it
with the provided API context. The result is converted to a vanilla response
using convertToVanilla
.
The API context containing request and environment information.
Returns
Section titled “Returns”A promise resolving to the API response after session initialization.