@light-auth/core
Version:
light auth core framework agnostic, using arctic
12 lines (11 loc) • 525 B
TypeScript
import { type LightAuthConfig, type BaseResponse, type LightAuthSession, type LightAuthUser } from "../models";
/**
* Redirects the user to the provider login page.
*/
export declare function redirectToProviderLoginHandler<Session extends LightAuthSession = LightAuthSession, User extends LightAuthUser<Session> = LightAuthUser<Session>>(args: {
config: LightAuthConfig<Session, User>;
providerName?: string;
callbackUrl?: string;
checkCsrf?: boolean;
[key: string]: unknown;
}): Promise<BaseResponse>;