@nest-boot/auth 7.13.6 → 8.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/mikro-orm-adapter.d.ts +2 -15
- package/dist/adapters/mikro-orm-adapter.js +13 -18
- package/dist/adapters/mikro-orm-adapter.js.map +1 -1
- package/dist/auth-module-options.interface.d.ts +3 -11
- package/dist/auth-module-options.interface.js +1 -2
- package/dist/auth.constants.d.ts +0 -2
- package/dist/auth.constants.js +2 -7
- package/dist/auth.constants.js.map +1 -1
- package/dist/auth.guard.d.ts +0 -20
- package/dist/auth.guard.js +12 -34
- package/dist/auth.guard.js.map +1 -1
- package/dist/auth.middleware.d.ts +4 -25
- package/dist/auth.middleware.js +19 -40
- package/dist/auth.middleware.js.map +1 -1
- package/dist/auth.module-definition.d.ts +1 -1
- package/dist/auth.module-definition.js +3 -7
- package/dist/auth.module-definition.js.map +1 -1
- package/dist/auth.module.d.ts +3 -27
- package/dist/auth.module.js +48 -71
- package/dist/auth.module.js.map +1 -1
- package/dist/auth.service.d.ts +200 -207
- package/dist/auth.service.js +6 -14
- package/dist/auth.service.js.map +1 -1
- package/dist/auth.transaction-context.d.ts +0 -20
- package/dist/auth.transaction-context.js +4 -26
- package/dist/auth.transaction-context.js.map +1 -1
- package/dist/decorators/current-session.decorator.d.ts +0 -1
- package/dist/decorators/current-session.decorator.js +4 -8
- package/dist/decorators/current-session.decorator.js.map +1 -1
- package/dist/decorators/current-user.decorator.d.ts +0 -1
- package/dist/decorators/current-user.decorator.js +4 -8
- package/dist/decorators/current-user.decorator.js.map +1 -1
- package/dist/decorators/index.d.ts +3 -3
- package/dist/decorators/index.js +3 -19
- package/dist/decorators/index.js.map +1 -1
- package/dist/decorators/public.decorator.d.ts +1 -2
- package/dist/decorators/public.decorator.js +3 -8
- package/dist/decorators/public.decorator.js.map +1 -1
- package/dist/entities/account.entity.d.ts +1 -21
- package/dist/entities/account.entity.js +36 -40
- package/dist/entities/account.entity.js.map +1 -1
- package/dist/entities/index.d.ts +4 -4
- package/dist/entities/index.js +4 -20
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/session.entity.d.ts +1 -16
- package/dist/entities/session.entity.js +27 -36
- package/dist/entities/session.entity.js.map +1 -1
- package/dist/entities/user.entity.d.ts +1 -15
- package/dist/entities/user.entity.js +23 -34
- package/dist/entities/user.entity.js.map +1 -1
- package/dist/entities/verification.entity.d.ts +1 -14
- package/dist/entities/verification.entity.js +20 -32
- package/dist/entities/verification.entity.js.map +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +9 -25
- package/dist/index.js.map +1 -1
- package/dist/utils/assert-no-duplicate-generic-oauth-plugin.js +1 -4
- package/dist/utils/assert-no-duplicate-generic-oauth-plugin.js.map +1 -1
- package/dist/utils/create-email-and-password-config.d.ts +1 -1
- package/dist/utils/create-email-and-password-config.js +3 -6
- package/dist/utils/create-email-and-password-config.js.map +1 -1
- package/dist/utils/create-oidc-config.d.ts +1 -1
- package/dist/utils/create-oidc-config.js +12 -15
- package/dist/utils/create-oidc-config.js.map +1 -1
- package/dist/utils/create-social-provider-config.d.ts +2 -2
- package/dist/utils/create-social-provider-config.js +13 -16
- package/dist/utils/create-social-provider-config.js.map +1 -1
- package/dist/utils/create-social-providers-config.d.ts +1 -1
- package/dist/utils/create-social-providers-config.js +4 -7
- package/dist/utils/create-social-providers-config.js.map +1 -1
- package/dist/utils/estimate-entropy.d.ts +0 -7
- package/dist/utils/estimate-entropy.js +1 -11
- package/dist/utils/estimate-entropy.js.map +1 -1
- package/dist/utils/generic-oauth-provider-config.type.js +1 -2
- package/dist/utils/has-oidc-env-config.js +3 -6
- package/dist/utils/has-oidc-env-config.js.map +1 -1
- package/dist/utils/has-social-provider-credential-env-config.d.ts +1 -1
- package/dist/utils/has-social-provider-credential-env-config.js +3 -6
- package/dist/utils/has-social-provider-credential-env-config.js.map +1 -1
- package/dist/utils/has-social-provider-env-config.d.ts +1 -1
- package/dist/utils/has-social-provider-env-config.js +3 -6
- package/dist/utils/has-social-provider-env-config.js.map +1 -1
- package/dist/utils/is-env-true.js +1 -4
- package/dist/utils/is-env-true.js.map +1 -1
- package/dist/utils/oidc.constants.d.ts +1 -1
- package/dist/utils/oidc.constants.js +3 -6
- package/dist/utils/oidc.constants.js.map +1 -1
- package/dist/utils/resolve-oidc-prompt.d.ts +1 -1
- package/dist/utils/resolve-oidc-prompt.js +4 -7
- package/dist/utils/resolve-oidc-prompt.js.map +1 -1
- package/dist/utils/resolve-oidc-scopes.js +1 -4
- package/dist/utils/resolve-oidc-scopes.js.map +1 -1
- package/dist/utils/resolve-required-oidc-env.d.ts +1 -1
- package/dist/utils/resolve-required-oidc-env.js +1 -4
- package/dist/utils/resolve-required-oidc-env.js.map +1 -1
- package/dist/utils/resolve-required-social-provider-env.d.ts +1 -1
- package/dist/utils/resolve-required-social-provider-env.js +3 -6
- package/dist/utils/resolve-required-social-provider-env.js.map +1 -1
- package/dist/utils/resolve-secret.d.ts +1 -1
- package/dist/utils/resolve-secret.js +6 -9
- package/dist/utils/resolve-secret.js.map +1 -1
- package/dist/utils/resolve-social-provider-enabled.d.ts +1 -1
- package/dist/utils/resolve-social-provider-enabled.js +3 -6
- package/dist/utils/resolve-social-provider-enabled.js.map +1 -1
- package/dist/utils/social-provider.constants.js +1 -4
- package/dist/utils/social-provider.constants.js.map +1 -1
- package/package.json +40 -27
- package/dist/adapters/mikro-orm-adapter.spec.d.ts +0 -8
- package/dist/adapters/mikro-orm-adapter.spec.js +0 -417
- package/dist/adapters/mikro-orm-adapter.spec.js.map +0 -1
- package/dist/auth.guard.spec.d.ts +0 -1
- package/dist/auth.guard.spec.js +0 -87
- package/dist/auth.guard.spec.js.map +0 -1
- package/dist/auth.middleware.spec.d.ts +0 -1
- package/dist/auth.middleware.spec.js +0 -139
- package/dist/auth.middleware.spec.js.map +0 -1
- package/dist/auth.module.spec.d.ts +0 -1
- package/dist/auth.module.spec.js +0 -626
- package/dist/auth.module.spec.js.map +0 -1
- package/dist/auth.service.spec.d.ts +0 -1
- package/dist/auth.service.spec.js +0 -26
- package/dist/auth.service.spec.js.map +0 -1
- package/dist/auth.transaction-context.spec.d.ts +0 -1
- package/dist/auth.transaction-context.spec.js +0 -20
- package/dist/auth.transaction-context.spec.js.map +0 -1
- package/dist/decorators/auth.decorators.spec.d.ts +0 -1
- package/dist/decorators/auth.decorators.spec.js +0 -87
- package/dist/decorators/auth.decorators.spec.js.map +0 -1
- package/dist/entities/entities.spec.d.ts +0 -1
- package/dist/entities/entities.spec.js +0 -80
- package/dist/entities/entities.spec.js.map +0 -1
- package/dist/index.spec.d.ts +0 -1
- package/dist/index.spec.js +0 -73
- package/dist/index.spec.js.map +0 -1
- package/dist/tsconfig.build.tsbuildinfo +0 -1
- package/dist/utils/assert-no-duplicate-generic-oauth-plugin.spec.d.ts +0 -1
- package/dist/utils/assert-no-duplicate-generic-oauth-plugin.spec.js +0 -29
- package/dist/utils/assert-no-duplicate-generic-oauth-plugin.spec.js.map +0 -1
- package/dist/utils/create-email-and-password-config.spec.d.ts +0 -1
- package/dist/utils/create-email-and-password-config.spec.js +0 -81
- package/dist/utils/create-email-and-password-config.spec.js.map +0 -1
- package/dist/utils/create-oidc-config.spec.d.ts +0 -1
- package/dist/utils/create-oidc-config.spec.js +0 -73
- package/dist/utils/create-oidc-config.spec.js.map +0 -1
- package/dist/utils/create-social-provider-config.spec.d.ts +0 -1
- package/dist/utils/create-social-provider-config.spec.js +0 -139
- package/dist/utils/create-social-provider-config.spec.js.map +0 -1
- package/dist/utils/create-social-providers-config.spec.d.ts +0 -1
- package/dist/utils/create-social-providers-config.spec.js +0 -63
- package/dist/utils/create-social-providers-config.spec.js.map +0 -1
- package/dist/utils/estimate-entropy.spec.d.ts +0 -1
- package/dist/utils/estimate-entropy.spec.js +0 -13
- package/dist/utils/estimate-entropy.spec.js.map +0 -1
- package/dist/utils/has-oidc-env-config.spec.d.ts +0 -1
- package/dist/utils/has-oidc-env-config.spec.js +0 -23
- package/dist/utils/has-oidc-env-config.spec.js.map +0 -1
- package/dist/utils/has-social-provider-credential-env-config.spec.d.ts +0 -1
- package/dist/utils/has-social-provider-credential-env-config.spec.js +0 -33
- package/dist/utils/has-social-provider-credential-env-config.spec.js.map +0 -1
- package/dist/utils/has-social-provider-env-config.spec.d.ts +0 -1
- package/dist/utils/has-social-provider-env-config.spec.js +0 -34
- package/dist/utils/has-social-provider-env-config.spec.js.map +0 -1
- package/dist/utils/is-env-true.spec.d.ts +0 -1
- package/dist/utils/is-env-true.spec.js +0 -20
- package/dist/utils/is-env-true.spec.js.map +0 -1
- package/dist/utils/resolve-oidc-prompt.spec.d.ts +0 -1
- package/dist/utils/resolve-oidc-prompt.spec.js +0 -28
- package/dist/utils/resolve-oidc-prompt.spec.js.map +0 -1
- package/dist/utils/resolve-oidc-scopes.spec.d.ts +0 -1
- package/dist/utils/resolve-oidc-scopes.spec.js +0 -16
- package/dist/utils/resolve-oidc-scopes.spec.js.map +0 -1
- package/dist/utils/resolve-required-oidc-env.spec.d.ts +0 -1
- package/dist/utils/resolve-required-oidc-env.spec.js +0 -22
- package/dist/utils/resolve-required-oidc-env.spec.js.map +0 -1
- package/dist/utils/resolve-required-social-provider-env.spec.d.ts +0 -1
- package/dist/utils/resolve-required-social-provider-env.spec.js +0 -29
- package/dist/utils/resolve-required-social-provider-env.spec.js.map +0 -1
- package/dist/utils/resolve-secret.spec.d.ts +0 -1
- package/dist/utils/resolve-secret.spec.js +0 -34
- package/dist/utils/resolve-secret.spec.js.map +0 -1
- package/dist/utils/resolve-social-provider-enabled.spec.d.ts +0 -1
- package/dist/utils/resolve-social-provider-enabled.spec.js +0 -20
- package/dist/utils/resolve-social-provider-enabled.spec.js.map +0 -1
package/dist/auth.service.d.ts
CHANGED
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import { type Auth } from "better-auth";
|
|
2
|
-
/** Service exposing the better-auth API to the application. */
|
|
3
2
|
export declare class AuthService {
|
|
4
|
-
/** @internal */
|
|
5
3
|
private readonly auth;
|
|
6
|
-
/**
|
|
7
|
-
* Creates a new AuthService instance.
|
|
8
|
-
* @param auth - The better-auth instance
|
|
9
|
-
*/
|
|
10
4
|
constructor(auth: Auth);
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
readonly ok: import("better-auth/*").StrictEndpoint<"/ok", {
|
|
5
|
+
get api(): import("better-auth").InferAPI<{
|
|
6
|
+
readonly ok: import("better-auth").StrictEndpoint<"/ok", {
|
|
14
7
|
method: "GET";
|
|
15
8
|
metadata: {
|
|
16
9
|
openapi: {
|
|
@@ -40,7 +33,7 @@ export declare class AuthService {
|
|
|
40
33
|
}, {
|
|
41
34
|
ok: boolean;
|
|
42
35
|
}>;
|
|
43
|
-
readonly error: import("better-auth
|
|
36
|
+
readonly error: import("better-auth").StrictEndpoint<"/error", {
|
|
44
37
|
method: "GET";
|
|
45
38
|
metadata: {
|
|
46
39
|
openapi: {
|
|
@@ -62,47 +55,47 @@ export declare class AuthService {
|
|
|
62
55
|
scope: "server";
|
|
63
56
|
};
|
|
64
57
|
}, Response>;
|
|
65
|
-
readonly signInSocial: import("better-auth
|
|
58
|
+
readonly signInSocial: import("better-auth").StrictEndpoint<"/sign-in/social", {
|
|
66
59
|
method: "POST";
|
|
67
60
|
operationId: string;
|
|
68
|
-
body: import("better-auth
|
|
69
|
-
callbackURL: import("better-auth
|
|
70
|
-
newUserCallbackURL: import("better-auth
|
|
71
|
-
errorCallbackURL: import("better-auth
|
|
72
|
-
provider: import("better-auth
|
|
73
|
-
disableRedirect: import("better-auth
|
|
74
|
-
idToken: import("better-auth
|
|
75
|
-
token: import("better-auth
|
|
76
|
-
nonce: import("better-auth
|
|
77
|
-
accessToken: import("better-auth
|
|
78
|
-
refreshToken: import("better-auth
|
|
79
|
-
expiresAt: import("better-auth
|
|
80
|
-
}, import("better-auth
|
|
81
|
-
scopes: import("better-auth
|
|
82
|
-
requestSignUp: import("better-auth
|
|
83
|
-
loginHint: import("better-auth
|
|
84
|
-
additionalData: import("better-auth
|
|
85
|
-
}, import("better-auth
|
|
61
|
+
body: import("better-auth").ZodObject<{
|
|
62
|
+
callbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
63
|
+
newUserCallbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
64
|
+
errorCallbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
65
|
+
provider: import("better-auth").ZodType<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown, import("better-auth").$ZodTypeInternals<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown>>;
|
|
66
|
+
disableRedirect: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
|
|
67
|
+
idToken: import("better-auth").ZodOptional<import("better-auth").ZodObject<{
|
|
68
|
+
token: import("better-auth").ZodString;
|
|
69
|
+
nonce: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
70
|
+
accessToken: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
71
|
+
refreshToken: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
72
|
+
expiresAt: import("better-auth").ZodOptional<import("better-auth").ZodNumber>;
|
|
73
|
+
}, import("better-auth").$strip>>;
|
|
74
|
+
scopes: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodString>>;
|
|
75
|
+
requestSignUp: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
|
|
76
|
+
loginHint: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
77
|
+
additionalData: import("better-auth").ZodOptional<import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodAny>>;
|
|
78
|
+
}, import("better-auth").$strip>;
|
|
86
79
|
metadata: {
|
|
87
80
|
$Infer: {
|
|
88
|
-
body: import("better-auth
|
|
89
|
-
callbackURL: import("better-auth
|
|
90
|
-
newUserCallbackURL: import("better-auth
|
|
91
|
-
errorCallbackURL: import("better-auth
|
|
92
|
-
provider: import("better-auth
|
|
93
|
-
disableRedirect: import("better-auth
|
|
94
|
-
idToken: import("better-auth
|
|
95
|
-
token: import("better-auth
|
|
96
|
-
nonce: import("better-auth
|
|
97
|
-
accessToken: import("better-auth
|
|
98
|
-
refreshToken: import("better-auth
|
|
99
|
-
expiresAt: import("better-auth
|
|
100
|
-
}, import("better-auth
|
|
101
|
-
scopes: import("better-auth
|
|
102
|
-
requestSignUp: import("better-auth
|
|
103
|
-
loginHint: import("better-auth
|
|
104
|
-
additionalData: import("better-auth
|
|
105
|
-
}, import("better-auth
|
|
81
|
+
body: import("better-auth").infer<import("better-auth").ZodObject<{
|
|
82
|
+
callbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
83
|
+
newUserCallbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
84
|
+
errorCallbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
85
|
+
provider: import("better-auth").ZodType<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown, import("better-auth").$ZodTypeInternals<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown>>;
|
|
86
|
+
disableRedirect: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
|
|
87
|
+
idToken: import("better-auth").ZodOptional<import("better-auth").ZodObject<{
|
|
88
|
+
token: import("better-auth").ZodString;
|
|
89
|
+
nonce: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
90
|
+
accessToken: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
91
|
+
refreshToken: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
92
|
+
expiresAt: import("better-auth").ZodOptional<import("better-auth").ZodNumber>;
|
|
93
|
+
}, import("better-auth").$strip>>;
|
|
94
|
+
scopes: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodString>>;
|
|
95
|
+
requestSignUp: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
|
|
96
|
+
loginHint: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
97
|
+
additionalData: import("better-auth").ZodOptional<import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodAny>>;
|
|
98
|
+
}, import("better-auth").$strip>>;
|
|
106
99
|
returned: {
|
|
107
100
|
redirect: boolean;
|
|
108
101
|
token?: string | undefined;
|
|
@@ -170,37 +163,37 @@ export declare class AuthService {
|
|
|
170
163
|
image?: string | null | undefined | undefined;
|
|
171
164
|
};
|
|
172
165
|
}>;
|
|
173
|
-
readonly callbackOAuth: import("better-auth
|
|
166
|
+
readonly callbackOAuth: import("better-auth").StrictEndpoint<"/callback/:id", {
|
|
174
167
|
method: ("GET" | "POST")[];
|
|
175
168
|
operationId: string;
|
|
176
|
-
body: import("better-auth
|
|
177
|
-
code: import("better-auth
|
|
178
|
-
error: import("better-auth
|
|
179
|
-
device_id: import("better-auth
|
|
180
|
-
error_description: import("better-auth
|
|
181
|
-
state: import("better-auth
|
|
182
|
-
user: import("better-auth
|
|
183
|
-
}, import("better-auth
|
|
184
|
-
query: import("better-auth
|
|
185
|
-
code: import("better-auth
|
|
186
|
-
error: import("better-auth
|
|
187
|
-
device_id: import("better-auth
|
|
188
|
-
error_description: import("better-auth
|
|
189
|
-
state: import("better-auth
|
|
190
|
-
user: import("better-auth
|
|
191
|
-
}, import("better-auth
|
|
169
|
+
body: import("better-auth").ZodOptional<import("better-auth").ZodObject<{
|
|
170
|
+
code: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
171
|
+
error: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
172
|
+
device_id: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
173
|
+
error_description: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
174
|
+
state: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
175
|
+
user: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
176
|
+
}, import("better-auth").$strip>>;
|
|
177
|
+
query: import("better-auth").ZodOptional<import("better-auth").ZodObject<{
|
|
178
|
+
code: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
179
|
+
error: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
180
|
+
device_id: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
181
|
+
error_description: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
182
|
+
state: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
183
|
+
user: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
184
|
+
}, import("better-auth").$strip>>;
|
|
192
185
|
metadata: {
|
|
193
186
|
allowedMediaTypes: string[];
|
|
194
187
|
scope: "server";
|
|
195
188
|
};
|
|
196
189
|
}, void>;
|
|
197
|
-
readonly getSession: import("better-auth
|
|
190
|
+
readonly getSession: import("better-auth").StrictEndpoint<"/get-session", {
|
|
198
191
|
method: "GET";
|
|
199
192
|
operationId: string;
|
|
200
|
-
query: import("better-auth
|
|
201
|
-
disableCookieCache: import("better-auth
|
|
202
|
-
disableRefresh: import("better-auth
|
|
203
|
-
}, import("better-auth
|
|
193
|
+
query: import("better-auth").ZodOptional<import("better-auth").ZodObject<{
|
|
194
|
+
disableCookieCache: import("better-auth").ZodOptional<import("better-auth").ZodCoercedBoolean<unknown>>;
|
|
195
|
+
disableRefresh: import("better-auth").ZodOptional<import("better-auth").ZodCoercedBoolean<unknown>>;
|
|
196
|
+
}, import("better-auth").$strip>>;
|
|
204
197
|
requireHeaders: true;
|
|
205
198
|
metadata: {
|
|
206
199
|
openapi: {
|
|
@@ -251,7 +244,7 @@ export declare class AuthService {
|
|
|
251
244
|
image?: string | null | undefined | undefined;
|
|
252
245
|
};
|
|
253
246
|
} | null>;
|
|
254
|
-
readonly signOut: import("better-auth
|
|
247
|
+
readonly signOut: import("better-auth").StrictEndpoint<"/sign-out", {
|
|
255
248
|
method: "POST";
|
|
256
249
|
operationId: string;
|
|
257
250
|
requireHeaders: true;
|
|
@@ -281,18 +274,18 @@ export declare class AuthService {
|
|
|
281
274
|
}, {
|
|
282
275
|
success: boolean;
|
|
283
276
|
}>;
|
|
284
|
-
readonly signUpEmail: import("better-auth
|
|
277
|
+
readonly signUpEmail: import("better-auth").StrictEndpoint<"/sign-up/email", {
|
|
285
278
|
method: "POST";
|
|
286
279
|
operationId: string;
|
|
287
|
-
use: ((inputContext: import("better-auth
|
|
288
|
-
body: import("better-auth
|
|
289
|
-
name: import("better-auth
|
|
290
|
-
email: import("better-auth
|
|
291
|
-
password: import("better-auth
|
|
292
|
-
image: import("better-auth
|
|
293
|
-
callbackURL: import("better-auth
|
|
294
|
-
rememberMe: import("better-auth
|
|
295
|
-
}, import("better-auth
|
|
280
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>)[];
|
|
281
|
+
body: import("better-auth").ZodIntersection<import("better-auth").ZodObject<{
|
|
282
|
+
name: import("better-auth").ZodString;
|
|
283
|
+
email: import("better-auth").ZodEmail;
|
|
284
|
+
password: import("better-auth").ZodString;
|
|
285
|
+
image: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
286
|
+
callbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
287
|
+
rememberMe: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
|
|
288
|
+
}, import("better-auth").$strip>, import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodAny>>;
|
|
296
289
|
metadata: {
|
|
297
290
|
allowedMediaTypes: string[];
|
|
298
291
|
$Infer: {
|
|
@@ -455,16 +448,16 @@ export declare class AuthService {
|
|
|
455
448
|
image?: string | null | undefined | undefined;
|
|
456
449
|
};
|
|
457
450
|
}>;
|
|
458
|
-
readonly signInEmail: import("better-auth
|
|
451
|
+
readonly signInEmail: import("better-auth").StrictEndpoint<"/sign-in/email", {
|
|
459
452
|
method: "POST";
|
|
460
453
|
operationId: string;
|
|
461
|
-
use: ((inputContext: import("better-auth
|
|
462
|
-
body: import("better-auth
|
|
463
|
-
email: import("better-auth
|
|
464
|
-
password: import("better-auth
|
|
465
|
-
callbackURL: import("better-auth
|
|
466
|
-
rememberMe: import("better-auth
|
|
467
|
-
}, import("better-auth
|
|
454
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>)[];
|
|
455
|
+
body: import("better-auth").ZodObject<{
|
|
456
|
+
email: import("better-auth").ZodString;
|
|
457
|
+
password: import("better-auth").ZodString;
|
|
458
|
+
callbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
459
|
+
rememberMe: import("better-auth").ZodOptional<import("better-auth").ZodDefault<import("better-auth").ZodBoolean>>;
|
|
460
|
+
}, import("better-auth").$strip>;
|
|
468
461
|
metadata: {
|
|
469
462
|
allowedMediaTypes: string[];
|
|
470
463
|
$Infer: {
|
|
@@ -540,16 +533,16 @@ export declare class AuthService {
|
|
|
540
533
|
image?: string | null | undefined | undefined;
|
|
541
534
|
};
|
|
542
535
|
}>;
|
|
543
|
-
readonly resetPassword: import("better-auth
|
|
536
|
+
readonly resetPassword: import("better-auth").StrictEndpoint<"/reset-password", {
|
|
544
537
|
method: "POST";
|
|
545
538
|
operationId: string;
|
|
546
|
-
query: import("better-auth
|
|
547
|
-
token: import("better-auth
|
|
548
|
-
}, import("better-auth
|
|
549
|
-
body: import("better-auth
|
|
550
|
-
newPassword: import("better-auth
|
|
551
|
-
token: import("better-auth
|
|
552
|
-
}, import("better-auth
|
|
539
|
+
query: import("better-auth").ZodOptional<import("better-auth").ZodObject<{
|
|
540
|
+
token: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
541
|
+
}, import("better-auth").$strip>>;
|
|
542
|
+
body: import("better-auth").ZodObject<{
|
|
543
|
+
newPassword: import("better-auth").ZodString;
|
|
544
|
+
token: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
545
|
+
}, import("better-auth").$strip>;
|
|
553
546
|
metadata: {
|
|
554
547
|
openapi: {
|
|
555
548
|
operationId: string;
|
|
@@ -576,14 +569,14 @@ export declare class AuthService {
|
|
|
576
569
|
}, {
|
|
577
570
|
status: boolean;
|
|
578
571
|
}>;
|
|
579
|
-
readonly verifyEmail: import("better-auth
|
|
572
|
+
readonly verifyEmail: import("better-auth").StrictEndpoint<"/verify-email", {
|
|
580
573
|
method: "GET";
|
|
581
574
|
operationId: string;
|
|
582
|
-
query: import("better-auth
|
|
583
|
-
token: import("better-auth
|
|
584
|
-
callbackURL: import("better-auth
|
|
585
|
-
}, import("better-auth
|
|
586
|
-
use: ((inputContext: import("better-auth
|
|
575
|
+
query: import("better-auth").ZodObject<{
|
|
576
|
+
token: import("better-auth").ZodString;
|
|
577
|
+
callbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
578
|
+
}, import("better-auth").$strip>;
|
|
579
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>)[];
|
|
587
580
|
metadata: {
|
|
588
581
|
openapi: {
|
|
589
582
|
description: string;
|
|
@@ -632,13 +625,13 @@ export declare class AuthService {
|
|
|
632
625
|
}, void | {
|
|
633
626
|
status: boolean;
|
|
634
627
|
}>;
|
|
635
|
-
readonly sendVerificationEmail: import("better-auth
|
|
628
|
+
readonly sendVerificationEmail: import("better-auth").StrictEndpoint<"/send-verification-email", {
|
|
636
629
|
method: "POST";
|
|
637
630
|
operationId: string;
|
|
638
|
-
body: import("better-auth
|
|
639
|
-
email: import("better-auth
|
|
640
|
-
callbackURL: import("better-auth
|
|
641
|
-
}, import("better-auth
|
|
631
|
+
body: import("better-auth").ZodObject<{
|
|
632
|
+
email: import("better-auth").ZodEmail;
|
|
633
|
+
callbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
634
|
+
}, import("better-auth").$strip>;
|
|
642
635
|
metadata: {
|
|
643
636
|
openapi: {
|
|
644
637
|
operationId: string;
|
|
@@ -707,13 +700,13 @@ export declare class AuthService {
|
|
|
707
700
|
}, {
|
|
708
701
|
status: boolean;
|
|
709
702
|
}>;
|
|
710
|
-
readonly changeEmail: import("better-auth
|
|
703
|
+
readonly changeEmail: import("better-auth").StrictEndpoint<"/change-email", {
|
|
711
704
|
method: "POST";
|
|
712
|
-
body: import("better-auth
|
|
713
|
-
newEmail: import("better-auth
|
|
714
|
-
callbackURL: import("better-auth
|
|
715
|
-
}, import("better-auth
|
|
716
|
-
use: ((inputContext: import("better-auth
|
|
705
|
+
body: import("better-auth").ZodObject<{
|
|
706
|
+
newEmail: import("better-auth").ZodEmail;
|
|
707
|
+
callbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
708
|
+
}, import("better-auth").$strip>;
|
|
709
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
717
710
|
session: {
|
|
718
711
|
session: Record<string, any> & {
|
|
719
712
|
id: string;
|
|
@@ -788,15 +781,15 @@ export declare class AuthService {
|
|
|
788
781
|
}, {
|
|
789
782
|
status: boolean;
|
|
790
783
|
}>;
|
|
791
|
-
readonly changePassword: import("better-auth
|
|
784
|
+
readonly changePassword: import("better-auth").StrictEndpoint<"/change-password", {
|
|
792
785
|
method: "POST";
|
|
793
786
|
operationId: string;
|
|
794
|
-
body: import("better-auth
|
|
795
|
-
newPassword: import("better-auth
|
|
796
|
-
currentPassword: import("better-auth
|
|
797
|
-
revokeOtherSessions: import("better-auth
|
|
798
|
-
}, import("better-auth
|
|
799
|
-
use: ((inputContext: import("better-auth
|
|
787
|
+
body: import("better-auth").ZodObject<{
|
|
788
|
+
newPassword: import("better-auth").ZodString;
|
|
789
|
+
currentPassword: import("better-auth").ZodString;
|
|
790
|
+
revokeOtherSessions: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
|
|
791
|
+
}, import("better-auth").$strip>;
|
|
792
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
800
793
|
session: {
|
|
801
794
|
session: Record<string, any> & {
|
|
802
795
|
id: string;
|
|
@@ -896,12 +889,12 @@ export declare class AuthService {
|
|
|
896
889
|
updatedAt: Date;
|
|
897
890
|
};
|
|
898
891
|
}>;
|
|
899
|
-
readonly setPassword: import("better-auth
|
|
892
|
+
readonly setPassword: import("better-auth").StrictEndpoint<string, {
|
|
900
893
|
method: "POST";
|
|
901
|
-
body: import("better-auth
|
|
902
|
-
newPassword: import("better-auth
|
|
903
|
-
}, import("better-auth
|
|
904
|
-
use: ((inputContext: import("better-auth
|
|
894
|
+
body: import("better-auth").ZodObject<{
|
|
895
|
+
newPassword: import("better-auth").ZodString;
|
|
896
|
+
}, import("better-auth").$strip>;
|
|
897
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
905
898
|
session: {
|
|
906
899
|
session: Record<string, any> & {
|
|
907
900
|
id: string;
|
|
@@ -927,11 +920,11 @@ export declare class AuthService {
|
|
|
927
920
|
}, {
|
|
928
921
|
status: boolean;
|
|
929
922
|
}>;
|
|
930
|
-
readonly updateUser: import("better-auth
|
|
923
|
+
readonly updateUser: import("better-auth").StrictEndpoint<"/update-user", {
|
|
931
924
|
method: "POST";
|
|
932
925
|
operationId: string;
|
|
933
|
-
body: import("better-auth
|
|
934
|
-
use: ((inputContext: import("better-auth
|
|
926
|
+
body: import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodAny>;
|
|
927
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
935
928
|
session: {
|
|
936
929
|
session: Record<string, any> & {
|
|
937
930
|
id: string;
|
|
@@ -1007,9 +1000,9 @@ export declare class AuthService {
|
|
|
1007
1000
|
}, {
|
|
1008
1001
|
status: boolean;
|
|
1009
1002
|
}>;
|
|
1010
|
-
readonly deleteUser: import("better-auth
|
|
1003
|
+
readonly deleteUser: import("better-auth").StrictEndpoint<"/delete-user", {
|
|
1011
1004
|
method: "POST";
|
|
1012
|
-
use: ((inputContext: import("better-auth
|
|
1005
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1013
1006
|
session: {
|
|
1014
1007
|
session: Record<string, any> & {
|
|
1015
1008
|
id: string;
|
|
@@ -1032,11 +1025,11 @@ export declare class AuthService {
|
|
|
1032
1025
|
};
|
|
1033
1026
|
};
|
|
1034
1027
|
}>)[];
|
|
1035
|
-
body: import("better-auth
|
|
1036
|
-
callbackURL: import("better-auth
|
|
1037
|
-
password: import("better-auth
|
|
1038
|
-
token: import("better-auth
|
|
1039
|
-
}, import("better-auth
|
|
1028
|
+
body: import("better-auth").ZodObject<{
|
|
1029
|
+
callbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1030
|
+
password: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1031
|
+
token: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1032
|
+
}, import("better-auth").$strip>;
|
|
1040
1033
|
metadata: {
|
|
1041
1034
|
openapi: {
|
|
1042
1035
|
operationId: string;
|
|
@@ -1094,12 +1087,12 @@ export declare class AuthService {
|
|
|
1094
1087
|
success: boolean;
|
|
1095
1088
|
message: string;
|
|
1096
1089
|
}>;
|
|
1097
|
-
readonly requestPasswordReset: import("better-auth
|
|
1090
|
+
readonly requestPasswordReset: import("better-auth").StrictEndpoint<"/request-password-reset", {
|
|
1098
1091
|
method: "POST";
|
|
1099
|
-
body: import("better-auth
|
|
1100
|
-
email: import("better-auth
|
|
1101
|
-
redirectTo: import("better-auth
|
|
1102
|
-
}, import("better-auth
|
|
1092
|
+
body: import("better-auth").ZodObject<{
|
|
1093
|
+
email: import("better-auth").ZodEmail;
|
|
1094
|
+
redirectTo: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1095
|
+
}, import("better-auth").$strip>;
|
|
1103
1096
|
metadata: {
|
|
1104
1097
|
openapi: {
|
|
1105
1098
|
operationId: string;
|
|
@@ -1130,13 +1123,13 @@ export declare class AuthService {
|
|
|
1130
1123
|
status: boolean;
|
|
1131
1124
|
message: string;
|
|
1132
1125
|
}>;
|
|
1133
|
-
readonly requestPasswordResetCallback: import("better-auth
|
|
1126
|
+
readonly requestPasswordResetCallback: import("better-auth").StrictEndpoint<"/reset-password/:token", {
|
|
1134
1127
|
method: "GET";
|
|
1135
1128
|
operationId: string;
|
|
1136
|
-
query: import("better-auth
|
|
1137
|
-
callbackURL: import("better-auth
|
|
1138
|
-
}, import("better-auth
|
|
1139
|
-
use: ((inputContext: import("better-auth
|
|
1129
|
+
query: import("better-auth").ZodObject<{
|
|
1130
|
+
callbackURL: import("better-auth").ZodString;
|
|
1131
|
+
}, import("better-auth").$strip>;
|
|
1132
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>)[];
|
|
1140
1133
|
metadata: {
|
|
1141
1134
|
openapi: {
|
|
1142
1135
|
operationId: string;
|
|
@@ -1178,10 +1171,10 @@ export declare class AuthService {
|
|
|
1178
1171
|
};
|
|
1179
1172
|
};
|
|
1180
1173
|
}, never>;
|
|
1181
|
-
readonly listSessions: import("better-auth
|
|
1174
|
+
readonly listSessions: import("better-auth").StrictEndpoint<"/list-sessions", {
|
|
1182
1175
|
method: "GET";
|
|
1183
1176
|
operationId: string;
|
|
1184
|
-
use: ((inputContext: import("better-auth
|
|
1177
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1185
1178
|
session: {
|
|
1186
1179
|
session: Record<string, any> & {
|
|
1187
1180
|
id: string;
|
|
@@ -1226,7 +1219,7 @@ export declare class AuthService {
|
|
|
1226
1219
|
};
|
|
1227
1220
|
};
|
|
1228
1221
|
};
|
|
1229
|
-
}, import("better-auth
|
|
1222
|
+
}, import("better-auth").Prettify<{
|
|
1230
1223
|
id: string;
|
|
1231
1224
|
createdAt: Date;
|
|
1232
1225
|
updatedAt: Date;
|
|
@@ -1236,12 +1229,12 @@ export declare class AuthService {
|
|
|
1236
1229
|
ipAddress?: string | null | undefined | undefined;
|
|
1237
1230
|
userAgent?: string | null | undefined | undefined;
|
|
1238
1231
|
}>[]>;
|
|
1239
|
-
readonly revokeSession: import("better-auth
|
|
1232
|
+
readonly revokeSession: import("better-auth").StrictEndpoint<"/revoke-session", {
|
|
1240
1233
|
method: "POST";
|
|
1241
|
-
body: import("better-auth
|
|
1242
|
-
token: import("better-auth
|
|
1243
|
-
}, import("better-auth
|
|
1244
|
-
use: ((inputContext: import("better-auth
|
|
1234
|
+
body: import("better-auth").ZodObject<{
|
|
1235
|
+
token: import("better-auth").ZodString;
|
|
1236
|
+
}, import("better-auth").$strip>;
|
|
1237
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1245
1238
|
session: {
|
|
1246
1239
|
session: Record<string, any> & {
|
|
1247
1240
|
id: string;
|
|
@@ -1308,9 +1301,9 @@ export declare class AuthService {
|
|
|
1308
1301
|
}, {
|
|
1309
1302
|
status: boolean;
|
|
1310
1303
|
}>;
|
|
1311
|
-
readonly revokeSessions: import("better-auth
|
|
1304
|
+
readonly revokeSessions: import("better-auth").StrictEndpoint<"/revoke-sessions", {
|
|
1312
1305
|
method: "POST";
|
|
1313
|
-
use: ((inputContext: import("better-auth
|
|
1306
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1314
1307
|
session: {
|
|
1315
1308
|
session: Record<string, any> & {
|
|
1316
1309
|
id: string;
|
|
@@ -1361,10 +1354,10 @@ export declare class AuthService {
|
|
|
1361
1354
|
}, {
|
|
1362
1355
|
status: boolean;
|
|
1363
1356
|
}>;
|
|
1364
|
-
readonly revokeOtherSessions: import("better-auth
|
|
1357
|
+
readonly revokeOtherSessions: import("better-auth").StrictEndpoint<"/revoke-other-sessions", {
|
|
1365
1358
|
method: "POST";
|
|
1366
1359
|
requireHeaders: true;
|
|
1367
|
-
use: ((inputContext: import("better-auth
|
|
1360
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1368
1361
|
session: {
|
|
1369
1362
|
session: Record<string, any> & {
|
|
1370
1363
|
id: string;
|
|
@@ -1414,26 +1407,26 @@ export declare class AuthService {
|
|
|
1414
1407
|
}, {
|
|
1415
1408
|
status: boolean;
|
|
1416
1409
|
}>;
|
|
1417
|
-
readonly linkSocialAccount: import("better-auth
|
|
1410
|
+
readonly linkSocialAccount: import("better-auth").StrictEndpoint<"/link-social", {
|
|
1418
1411
|
method: "POST";
|
|
1419
1412
|
requireHeaders: true;
|
|
1420
|
-
body: import("better-auth
|
|
1421
|
-
callbackURL: import("better-auth
|
|
1422
|
-
provider: import("better-auth
|
|
1423
|
-
idToken: import("better-auth
|
|
1424
|
-
token: import("better-auth
|
|
1425
|
-
nonce: import("better-auth
|
|
1426
|
-
accessToken: import("better-auth
|
|
1427
|
-
refreshToken: import("better-auth
|
|
1428
|
-
scopes: import("better-auth
|
|
1429
|
-
}, import("better-auth
|
|
1430
|
-
requestSignUp: import("better-auth
|
|
1431
|
-
scopes: import("better-auth
|
|
1432
|
-
errorCallbackURL: import("better-auth
|
|
1433
|
-
disableRedirect: import("better-auth
|
|
1434
|
-
additionalData: import("better-auth
|
|
1435
|
-
}, import("better-auth
|
|
1436
|
-
use: ((inputContext: import("better-auth
|
|
1413
|
+
body: import("better-auth").ZodObject<{
|
|
1414
|
+
callbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1415
|
+
provider: import("better-auth").ZodType<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown, import("better-auth").$ZodTypeInternals<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown>>;
|
|
1416
|
+
idToken: import("better-auth").ZodOptional<import("better-auth").ZodObject<{
|
|
1417
|
+
token: import("better-auth").ZodString;
|
|
1418
|
+
nonce: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1419
|
+
accessToken: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1420
|
+
refreshToken: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1421
|
+
scopes: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodString>>;
|
|
1422
|
+
}, import("better-auth").$strip>>;
|
|
1423
|
+
requestSignUp: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
|
|
1424
|
+
scopes: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodString>>;
|
|
1425
|
+
errorCallbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1426
|
+
disableRedirect: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
|
|
1427
|
+
additionalData: import("better-auth").ZodOptional<import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodAny>>;
|
|
1428
|
+
}, import("better-auth").$strip>;
|
|
1429
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1437
1430
|
session: {
|
|
1438
1431
|
session: Record<string, any> & {
|
|
1439
1432
|
id: string;
|
|
@@ -1492,9 +1485,9 @@ export declare class AuthService {
|
|
|
1492
1485
|
url: string;
|
|
1493
1486
|
redirect: boolean;
|
|
1494
1487
|
}>;
|
|
1495
|
-
readonly listUserAccounts: import("better-auth
|
|
1488
|
+
readonly listUserAccounts: import("better-auth").StrictEndpoint<"/list-accounts", {
|
|
1496
1489
|
method: "GET";
|
|
1497
|
-
use: ((inputContext: import("better-auth
|
|
1490
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1498
1491
|
session: {
|
|
1499
1492
|
session: Record<string, any> & {
|
|
1500
1493
|
id: string;
|
|
@@ -1576,13 +1569,13 @@ export declare class AuthService {
|
|
|
1576
1569
|
userId: string;
|
|
1577
1570
|
scopes: string[];
|
|
1578
1571
|
}[]>;
|
|
1579
|
-
readonly deleteUserCallback: import("better-auth
|
|
1572
|
+
readonly deleteUserCallback: import("better-auth").StrictEndpoint<"/delete-user/callback", {
|
|
1580
1573
|
method: "GET";
|
|
1581
|
-
query: import("better-auth
|
|
1582
|
-
token: import("better-auth
|
|
1583
|
-
callbackURL: import("better-auth
|
|
1584
|
-
}, import("better-auth
|
|
1585
|
-
use: ((inputContext: import("better-auth
|
|
1574
|
+
query: import("better-auth").ZodObject<{
|
|
1575
|
+
token: import("better-auth").ZodString;
|
|
1576
|
+
callbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1577
|
+
}, import("better-auth").$strip>;
|
|
1578
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>)[];
|
|
1586
1579
|
metadata: {
|
|
1587
1580
|
openapi: {
|
|
1588
1581
|
description: string;
|
|
@@ -1616,13 +1609,13 @@ export declare class AuthService {
|
|
|
1616
1609
|
success: boolean;
|
|
1617
1610
|
message: string;
|
|
1618
1611
|
}>;
|
|
1619
|
-
readonly unlinkAccount: import("better-auth
|
|
1612
|
+
readonly unlinkAccount: import("better-auth").StrictEndpoint<"/unlink-account", {
|
|
1620
1613
|
method: "POST";
|
|
1621
|
-
body: import("better-auth
|
|
1622
|
-
providerId: import("better-auth
|
|
1623
|
-
accountId: import("better-auth
|
|
1624
|
-
}, import("better-auth
|
|
1625
|
-
use: ((inputContext: import("better-auth
|
|
1614
|
+
body: import("better-auth").ZodObject<{
|
|
1615
|
+
providerId: import("better-auth").ZodString;
|
|
1616
|
+
accountId: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1617
|
+
}, import("better-auth").$strip>;
|
|
1618
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1626
1619
|
session: {
|
|
1627
1620
|
session: Record<string, any> & {
|
|
1628
1621
|
id: string;
|
|
@@ -1670,13 +1663,13 @@ export declare class AuthService {
|
|
|
1670
1663
|
}, {
|
|
1671
1664
|
status: boolean;
|
|
1672
1665
|
}>;
|
|
1673
|
-
readonly refreshToken: import("better-auth
|
|
1666
|
+
readonly refreshToken: import("better-auth").StrictEndpoint<"/refresh-token", {
|
|
1674
1667
|
method: "POST";
|
|
1675
|
-
body: import("better-auth
|
|
1676
|
-
providerId: import("better-auth
|
|
1677
|
-
accountId: import("better-auth
|
|
1678
|
-
userId: import("better-auth
|
|
1679
|
-
}, import("better-auth
|
|
1668
|
+
body: import("better-auth").ZodObject<{
|
|
1669
|
+
providerId: import("better-auth").ZodString;
|
|
1670
|
+
accountId: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1671
|
+
userId: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1672
|
+
}, import("better-auth").$strip>;
|
|
1680
1673
|
metadata: {
|
|
1681
1674
|
openapi: {
|
|
1682
1675
|
description: string;
|
|
@@ -1729,13 +1722,13 @@ export declare class AuthService {
|
|
|
1729
1722
|
providerId: string;
|
|
1730
1723
|
accountId: string;
|
|
1731
1724
|
}>;
|
|
1732
|
-
readonly getAccessToken: import("better-auth
|
|
1725
|
+
readonly getAccessToken: import("better-auth").StrictEndpoint<"/get-access-token", {
|
|
1733
1726
|
method: "POST";
|
|
1734
|
-
body: import("better-auth
|
|
1735
|
-
providerId: import("better-auth
|
|
1736
|
-
accountId: import("better-auth
|
|
1737
|
-
userId: import("better-auth
|
|
1738
|
-
}, import("better-auth
|
|
1727
|
+
body: import("better-auth").ZodObject<{
|
|
1728
|
+
providerId: import("better-auth").ZodString;
|
|
1729
|
+
accountId: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1730
|
+
userId: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1731
|
+
}, import("better-auth").$strip>;
|
|
1739
1732
|
metadata: {
|
|
1740
1733
|
openapi: {
|
|
1741
1734
|
description: string;
|
|
@@ -1784,9 +1777,9 @@ export declare class AuthService {
|
|
|
1784
1777
|
scopes: string[];
|
|
1785
1778
|
idToken: string | undefined;
|
|
1786
1779
|
}>;
|
|
1787
|
-
readonly accountInfo: import("better-auth
|
|
1780
|
+
readonly accountInfo: import("better-auth").StrictEndpoint<"/account-info", {
|
|
1788
1781
|
method: "GET";
|
|
1789
|
-
use: ((inputContext: import("better-auth
|
|
1782
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1790
1783
|
session: {
|
|
1791
1784
|
session: Record<string, any> & {
|
|
1792
1785
|
id: string;
|
|
@@ -1856,11 +1849,11 @@ export declare class AuthService {
|
|
|
1856
1849
|
};
|
|
1857
1850
|
};
|
|
1858
1851
|
};
|
|
1859
|
-
query: import("better-auth
|
|
1860
|
-
accountId: import("better-auth
|
|
1861
|
-
}, import("better-auth
|
|
1852
|
+
query: import("better-auth").ZodOptional<import("better-auth").ZodObject<{
|
|
1853
|
+
accountId: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1854
|
+
}, import("better-auth").$strip>>;
|
|
1862
1855
|
}, {
|
|
1863
|
-
user: import("better-auth
|
|
1856
|
+
user: import("better-auth").OAuth2UserInfo;
|
|
1864
1857
|
data: Record<string, any>;
|
|
1865
1858
|
} | null>;
|
|
1866
1859
|
}>;
|