操作
auth()
auth(event, config): ReturnType<App.Locals["auth"]>参数
| 参数 | 类型 |
|---|---|
事件 | RequestEvent<Partial<Record<string, string>>, null | string> |
配置 | SvelteKitAuthConfig |
返回值
ReturnType<App.Locals["auth"]>
signIn()
signIn(
provider,
options,
authorizationParams,
config,
event): Promise<any>参数
| 参数 | 类型 |
|---|---|
提供者 | undefined | BuiltInProviderType | string & {} |
选项 | undefined | FormData | { redirect: boolean; redirectTo: string; } & Record<string, any> |
授权参数 | | undefined | string | Record<string, string> | URLSearchParams | string[][] |
配置 | SvelteKitAuthConfig |
事件 | RequestEvent<Partial<Record<string, string>>, null | string> |
返回值
Promise<any>
signOut()
signOut(
options,
config,
event): Promise<any>参数
| 参数 | 类型 |
|---|---|
选项 | undefined | { redirect: boolean; redirectTo: string; } |
配置 | SvelteKitAuthConfig |
事件 | RequestEvent<Partial<Record<string, string>>, null | string> |
返回值
Promise<any>