Saltearse al contenido

endpoint

Esta página aún no está disponible en tu idioma.

const initCallback: APIRoute;

Defined in: studiocms/packages/@studiocms/google/src/endpoint.ts:34^

Handles the Google OAuth callback endpoint.

This API route initializes the Google OAuth callback process by invoking the initCallback method from the GoogleOAuthAPI. It uses the Effect system to manage dependencies and asynchronous control flow, providing the default implementation of GoogleOAuthAPI.

The API context containing request and response objects.

A promise resolving to the result of the Google OAuth callback process.


const initSession: APIRoute;

Defined in: studiocms/packages/@studiocms/google/src/endpoint.ts:16^

API route handler for initializing a Google session.

This function uses the Effect system to compose asynchronous operations, retrieving the initSession method from the GoogleOAuthAPI 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.

A promise resolving to the API response after session initialization.