UNPKG

@analog-tools/auth

Version:

Authentication module for AnalogJS applications

12 lines (11 loc) 442 B
import { AuthRoute } from '../types/auth.types'; /** * Handles the OAuth callback from the authentication provider. * This route is responsible for processing the authorization code * and exchanging it for an access token. * * @param event - The H3 event object containing request and response data. * @returns A redirect to the application or an error if the state is invalid. */ declare const route: AuthRoute; export default route;