/opt/canhelp/node_modules/better-auth/dist/api/routes
Edit: /opt/canhelp/node_modules/better-auth/dist/api/routes/sign-in.d.mts (7353B)
import { BetterAuthOptions } from "@better-auth/core";
import { User } from "@better-auth/core/db";
import * as better_call0 from "better-call";
import * as z from "zod";
//#region src/api/routes/sign-in.d.ts
declare const socialSignInBodySchema: z.ZodObject<{
callbackURL: z.ZodOptional
;
newUserCallbackURL: z.ZodOptional;
errorCallbackURL: z.ZodOptional;
provider: z.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown, z.core.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown>>;
disableRedirect: z.ZodOptional;
idToken: z.ZodOptional;
accessToken: z.ZodOptional;
refreshToken: z.ZodOptional;
expiresAt: z.ZodOptional;
user: z.ZodOptional;
lastName: z.ZodOptional;
}, z.core.$strip>>;
email: z.ZodOptional;
}, z.core.$strip>>;
}, z.core.$strip>>;
scopes: z.ZodOptional>;
requestSignUp: z.ZodOptional;
loginHint: z.ZodOptional;
additionalData: z.ZodOptional>;
}, z.core.$strip>;
declare const signInSocial: () => better_call0.StrictEndpoint<"/sign-in/social", {
method: "POST";
operationId: string;
body: z.ZodObject<{
callbackURL: z.ZodOptional;
newUserCallbackURL: z.ZodOptional;
errorCallbackURL: z.ZodOptional;
provider: z.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown, z.core.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown>>;
disableRedirect: z.ZodOptional;
idToken: z.ZodOptional;
accessToken: z.ZodOptional;
refreshToken: z.ZodOptional;
expiresAt: z.ZodOptional;
user: z.ZodOptional;
lastName: z.ZodOptional;
}, z.core.$strip>>;
email: z.ZodOptional;
}, z.core.$strip>>;
}, z.core.$strip>>;
scopes: z.ZodOptional>;
requestSignUp: z.ZodOptional;
loginHint: z.ZodOptional;
additionalData: z.ZodOptional>;
}, z.core.$strip>;
metadata: {
$Infer: {
body: z.infer;
returned: {
redirect: boolean;
token?: string | undefined;
url?: string | undefined;
user?: User | undefined;
};
};
openapi: {
description: string;
operationId: string;
responses: {
"200": {
description: string;
content: {
"application/json": {
schema: {
type: "object";
description: string;
properties: {
token: {
type: string;
};
user: {
type: string;
$ref: string;
};
url: {
type: string;
};
redirect: {
type: string;
enum: boolean[];
};
};
required: string[];
};
};
};
};
};
};
};
}, {
redirect: boolean;
url: string;
} | {
redirect: boolean;
token: string;
url: undefined;
user: User;
}>;
declare const signInEmail: () => better_call0.StrictEndpoint<"/sign-in/email", {
method: "POST";
operationId: string;
use: ((inputContext: better_call0.MiddlewareInputContext) => Promise)[];
body: z.ZodObject<{
email: z.ZodString;
password: z.ZodString;
callbackURL: z.ZodOptional;
rememberMe: z.ZodOptional>;
}, z.core.$strip>;
metadata: {
allowedMediaTypes: string[];
$Infer: {
body: {
email: string;
password: string;
callbackURL?: string | undefined;
rememberMe?: boolean | undefined;
};
returned: {
redirect: boolean;
token: string;
url?: string | undefined;
user: User;
};
};
openapi: {
operationId: string;
description: string;
responses: {
"200": {
description: string;
content: {
"application/json": {
schema: {
type: "object";
description: string;
properties: {
redirect: {
type: string;
enum: boolean[];
};
token: {
type: string;
description: string;
};
url: {
type: string;
nullable: boolean;
};
user: {
type: string;
$ref: string;
};
};
required: string[];
};
};
};
};
};
};
};
}, {
redirect: boolean;
token: string;
url?: string | undefined;
user: User;
}>;
//#endregion
export { signInEmail, signInSocial };
//# sourceMappingURL=sign-in.d.mts.map