@nest-boot/auth 7.12.1 → 8.0.0-beta.0
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 -2
- package/dist/adapters/mikro-orm-adapter.js +4 -9
- package/dist/adapters/mikro-orm-adapter.js.map +1 -1
- package/dist/auth-module-options.interface.d.ts +3 -2
- package/dist/auth-module-options.interface.js +1 -2
- package/dist/auth.constants.js +2 -5
- package/dist/auth.constants.js.map +1 -1
- package/dist/auth.guard.js +12 -14
- package/dist/auth.guard.js.map +1 -1
- package/dist/auth.middleware.d.ts +4 -4
- package/dist/auth.middleware.js +19 -19
- 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 -3
- package/dist/auth.module.js +48 -47
- package/dist/auth.module.js.map +1 -1
- package/dist/auth.service.d.ts +200 -200
- package/dist/auth.service.js +6 -8
- package/dist/auth.service.js.map +1 -1
- package/dist/auth.transaction-context.js +3 -9
- package/dist/auth.transaction-context.js.map +1 -1
- package/dist/decorators/current-session.decorator.js +4 -7
- package/dist/decorators/current-session.decorator.js.map +1 -1
- package/dist/decorators/current-user.decorator.js +4 -7
- 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 -1
- package/dist/decorators/public.decorator.js +3 -7
- package/dist/decorators/public.decorator.js.map +1 -1
- package/dist/entities/account.entity.d.ts +1 -1
- package/dist/entities/account.entity.js +49 -33
- 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 -1
- package/dist/entities/session.entity.js +35 -29
- package/dist/entities/session.entity.js.map +1 -1
- package/dist/entities/user.entity.d.ts +1 -1
- package/dist/entities/user.entity.js +30 -27
- package/dist/entities/user.entity.js.map +1 -1
- package/dist/entities/verification.entity.d.ts +1 -1
- package/dist/entities/verification.entity.js +26 -25
- 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.js +1 -4
- 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 +3 -6
- 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 +24 -26
- 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
|
@@ -9,8 +9,8 @@ export declare class AuthService {
|
|
|
9
9
|
*/
|
|
10
10
|
constructor(auth: Auth);
|
|
11
11
|
/** The better-auth API interface for session and user management. */
|
|
12
|
-
get api(): import("better-auth
|
|
13
|
-
readonly ok: import("better-auth
|
|
12
|
+
get api(): import("better-auth").InferAPI<{
|
|
13
|
+
readonly ok: import("better-auth").StrictEndpoint<"/ok", {
|
|
14
14
|
method: "GET";
|
|
15
15
|
metadata: {
|
|
16
16
|
openapi: {
|
|
@@ -40,7 +40,7 @@ export declare class AuthService {
|
|
|
40
40
|
}, {
|
|
41
41
|
ok: boolean;
|
|
42
42
|
}>;
|
|
43
|
-
readonly error: import("better-auth
|
|
43
|
+
readonly error: import("better-auth").StrictEndpoint<"/error", {
|
|
44
44
|
method: "GET";
|
|
45
45
|
metadata: {
|
|
46
46
|
openapi: {
|
|
@@ -62,47 +62,47 @@ export declare class AuthService {
|
|
|
62
62
|
scope: "server";
|
|
63
63
|
};
|
|
64
64
|
}, Response>;
|
|
65
|
-
readonly signInSocial: import("better-auth
|
|
65
|
+
readonly signInSocial: import("better-auth").StrictEndpoint<"/sign-in/social", {
|
|
66
66
|
method: "POST";
|
|
67
67
|
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
|
|
68
|
+
body: import("better-auth").ZodObject<{
|
|
69
|
+
callbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
70
|
+
newUserCallbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
71
|
+
errorCallbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
72
|
+
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>>;
|
|
73
|
+
disableRedirect: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
|
|
74
|
+
idToken: import("better-auth").ZodOptional<import("better-auth").ZodObject<{
|
|
75
|
+
token: import("better-auth").ZodString;
|
|
76
|
+
nonce: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
77
|
+
accessToken: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
78
|
+
refreshToken: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
79
|
+
expiresAt: import("better-auth").ZodOptional<import("better-auth").ZodNumber>;
|
|
80
|
+
}, import("better-auth").$strip>>;
|
|
81
|
+
scopes: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodString>>;
|
|
82
|
+
requestSignUp: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
|
|
83
|
+
loginHint: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
84
|
+
additionalData: import("better-auth").ZodOptional<import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodAny>>;
|
|
85
|
+
}, import("better-auth").$strip>;
|
|
86
86
|
metadata: {
|
|
87
87
|
$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
|
|
88
|
+
body: import("better-auth").infer<import("better-auth").ZodObject<{
|
|
89
|
+
callbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
90
|
+
newUserCallbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
91
|
+
errorCallbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
92
|
+
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>>;
|
|
93
|
+
disableRedirect: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
|
|
94
|
+
idToken: import("better-auth").ZodOptional<import("better-auth").ZodObject<{
|
|
95
|
+
token: import("better-auth").ZodString;
|
|
96
|
+
nonce: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
97
|
+
accessToken: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
98
|
+
refreshToken: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
99
|
+
expiresAt: import("better-auth").ZodOptional<import("better-auth").ZodNumber>;
|
|
100
|
+
}, import("better-auth").$strip>>;
|
|
101
|
+
scopes: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodString>>;
|
|
102
|
+
requestSignUp: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
|
|
103
|
+
loginHint: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
104
|
+
additionalData: import("better-auth").ZodOptional<import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodAny>>;
|
|
105
|
+
}, import("better-auth").$strip>>;
|
|
106
106
|
returned: {
|
|
107
107
|
redirect: boolean;
|
|
108
108
|
token?: string | undefined;
|
|
@@ -170,37 +170,37 @@ export declare class AuthService {
|
|
|
170
170
|
image?: string | null | undefined | undefined;
|
|
171
171
|
};
|
|
172
172
|
}>;
|
|
173
|
-
readonly callbackOAuth: import("better-auth
|
|
173
|
+
readonly callbackOAuth: import("better-auth").StrictEndpoint<"/callback/:id", {
|
|
174
174
|
method: ("GET" | "POST")[];
|
|
175
175
|
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
|
|
176
|
+
body: import("better-auth").ZodOptional<import("better-auth").ZodObject<{
|
|
177
|
+
code: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
178
|
+
error: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
179
|
+
device_id: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
180
|
+
error_description: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
181
|
+
state: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
182
|
+
user: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
183
|
+
}, import("better-auth").$strip>>;
|
|
184
|
+
query: import("better-auth").ZodOptional<import("better-auth").ZodObject<{
|
|
185
|
+
code: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
186
|
+
error: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
187
|
+
device_id: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
188
|
+
error_description: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
189
|
+
state: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
190
|
+
user: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
191
|
+
}, import("better-auth").$strip>>;
|
|
192
192
|
metadata: {
|
|
193
193
|
allowedMediaTypes: string[];
|
|
194
194
|
scope: "server";
|
|
195
195
|
};
|
|
196
196
|
}, void>;
|
|
197
|
-
readonly getSession: import("better-auth
|
|
197
|
+
readonly getSession: import("better-auth").StrictEndpoint<"/get-session", {
|
|
198
198
|
method: "GET";
|
|
199
199
|
operationId: string;
|
|
200
|
-
query: import("better-auth
|
|
201
|
-
disableCookieCache: import("better-auth
|
|
202
|
-
disableRefresh: import("better-auth
|
|
203
|
-
}, import("better-auth
|
|
200
|
+
query: import("better-auth").ZodOptional<import("better-auth").ZodObject<{
|
|
201
|
+
disableCookieCache: import("better-auth").ZodOptional<import("better-auth").ZodCoercedBoolean<unknown>>;
|
|
202
|
+
disableRefresh: import("better-auth").ZodOptional<import("better-auth").ZodCoercedBoolean<unknown>>;
|
|
203
|
+
}, import("better-auth").$strip>>;
|
|
204
204
|
requireHeaders: true;
|
|
205
205
|
metadata: {
|
|
206
206
|
openapi: {
|
|
@@ -251,7 +251,7 @@ export declare class AuthService {
|
|
|
251
251
|
image?: string | null | undefined | undefined;
|
|
252
252
|
};
|
|
253
253
|
} | null>;
|
|
254
|
-
readonly signOut: import("better-auth
|
|
254
|
+
readonly signOut: import("better-auth").StrictEndpoint<"/sign-out", {
|
|
255
255
|
method: "POST";
|
|
256
256
|
operationId: string;
|
|
257
257
|
requireHeaders: true;
|
|
@@ -281,18 +281,18 @@ export declare class AuthService {
|
|
|
281
281
|
}, {
|
|
282
282
|
success: boolean;
|
|
283
283
|
}>;
|
|
284
|
-
readonly signUpEmail: import("better-auth
|
|
284
|
+
readonly signUpEmail: import("better-auth").StrictEndpoint<"/sign-up/email", {
|
|
285
285
|
method: "POST";
|
|
286
286
|
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
|
|
287
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>)[];
|
|
288
|
+
body: import("better-auth").ZodIntersection<import("better-auth").ZodObject<{
|
|
289
|
+
name: import("better-auth").ZodString;
|
|
290
|
+
email: import("better-auth").ZodEmail;
|
|
291
|
+
password: import("better-auth").ZodString;
|
|
292
|
+
image: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
293
|
+
callbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
294
|
+
rememberMe: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
|
|
295
|
+
}, import("better-auth").$strip>, import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodAny>>;
|
|
296
296
|
metadata: {
|
|
297
297
|
allowedMediaTypes: string[];
|
|
298
298
|
$Infer: {
|
|
@@ -455,16 +455,16 @@ export declare class AuthService {
|
|
|
455
455
|
image?: string | null | undefined | undefined;
|
|
456
456
|
};
|
|
457
457
|
}>;
|
|
458
|
-
readonly signInEmail: import("better-auth
|
|
458
|
+
readonly signInEmail: import("better-auth").StrictEndpoint<"/sign-in/email", {
|
|
459
459
|
method: "POST";
|
|
460
460
|
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
|
|
461
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>)[];
|
|
462
|
+
body: import("better-auth").ZodObject<{
|
|
463
|
+
email: import("better-auth").ZodString;
|
|
464
|
+
password: import("better-auth").ZodString;
|
|
465
|
+
callbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
466
|
+
rememberMe: import("better-auth").ZodOptional<import("better-auth").ZodDefault<import("better-auth").ZodBoolean>>;
|
|
467
|
+
}, import("better-auth").$strip>;
|
|
468
468
|
metadata: {
|
|
469
469
|
allowedMediaTypes: string[];
|
|
470
470
|
$Infer: {
|
|
@@ -540,16 +540,16 @@ export declare class AuthService {
|
|
|
540
540
|
image?: string | null | undefined | undefined;
|
|
541
541
|
};
|
|
542
542
|
}>;
|
|
543
|
-
readonly resetPassword: import("better-auth
|
|
543
|
+
readonly resetPassword: import("better-auth").StrictEndpoint<"/reset-password", {
|
|
544
544
|
method: "POST";
|
|
545
545
|
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
|
|
546
|
+
query: import("better-auth").ZodOptional<import("better-auth").ZodObject<{
|
|
547
|
+
token: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
548
|
+
}, import("better-auth").$strip>>;
|
|
549
|
+
body: import("better-auth").ZodObject<{
|
|
550
|
+
newPassword: import("better-auth").ZodString;
|
|
551
|
+
token: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
552
|
+
}, import("better-auth").$strip>;
|
|
553
553
|
metadata: {
|
|
554
554
|
openapi: {
|
|
555
555
|
operationId: string;
|
|
@@ -576,14 +576,14 @@ export declare class AuthService {
|
|
|
576
576
|
}, {
|
|
577
577
|
status: boolean;
|
|
578
578
|
}>;
|
|
579
|
-
readonly verifyEmail: import("better-auth
|
|
579
|
+
readonly verifyEmail: import("better-auth").StrictEndpoint<"/verify-email", {
|
|
580
580
|
method: "GET";
|
|
581
581
|
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
|
|
582
|
+
query: import("better-auth").ZodObject<{
|
|
583
|
+
token: import("better-auth").ZodString;
|
|
584
|
+
callbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
585
|
+
}, import("better-auth").$strip>;
|
|
586
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>)[];
|
|
587
587
|
metadata: {
|
|
588
588
|
openapi: {
|
|
589
589
|
description: string;
|
|
@@ -632,13 +632,13 @@ export declare class AuthService {
|
|
|
632
632
|
}, void | {
|
|
633
633
|
status: boolean;
|
|
634
634
|
}>;
|
|
635
|
-
readonly sendVerificationEmail: import("better-auth
|
|
635
|
+
readonly sendVerificationEmail: import("better-auth").StrictEndpoint<"/send-verification-email", {
|
|
636
636
|
method: "POST";
|
|
637
637
|
operationId: string;
|
|
638
|
-
body: import("better-auth
|
|
639
|
-
email: import("better-auth
|
|
640
|
-
callbackURL: import("better-auth
|
|
641
|
-
}, import("better-auth
|
|
638
|
+
body: import("better-auth").ZodObject<{
|
|
639
|
+
email: import("better-auth").ZodEmail;
|
|
640
|
+
callbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
641
|
+
}, import("better-auth").$strip>;
|
|
642
642
|
metadata: {
|
|
643
643
|
openapi: {
|
|
644
644
|
operationId: string;
|
|
@@ -707,13 +707,13 @@ export declare class AuthService {
|
|
|
707
707
|
}, {
|
|
708
708
|
status: boolean;
|
|
709
709
|
}>;
|
|
710
|
-
readonly changeEmail: import("better-auth
|
|
710
|
+
readonly changeEmail: import("better-auth").StrictEndpoint<"/change-email", {
|
|
711
711
|
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
|
|
712
|
+
body: import("better-auth").ZodObject<{
|
|
713
|
+
newEmail: import("better-auth").ZodEmail;
|
|
714
|
+
callbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
715
|
+
}, import("better-auth").$strip>;
|
|
716
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
717
717
|
session: {
|
|
718
718
|
session: Record<string, any> & {
|
|
719
719
|
id: string;
|
|
@@ -788,15 +788,15 @@ export declare class AuthService {
|
|
|
788
788
|
}, {
|
|
789
789
|
status: boolean;
|
|
790
790
|
}>;
|
|
791
|
-
readonly changePassword: import("better-auth
|
|
791
|
+
readonly changePassword: import("better-auth").StrictEndpoint<"/change-password", {
|
|
792
792
|
method: "POST";
|
|
793
793
|
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
|
|
794
|
+
body: import("better-auth").ZodObject<{
|
|
795
|
+
newPassword: import("better-auth").ZodString;
|
|
796
|
+
currentPassword: import("better-auth").ZodString;
|
|
797
|
+
revokeOtherSessions: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
|
|
798
|
+
}, import("better-auth").$strip>;
|
|
799
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
800
800
|
session: {
|
|
801
801
|
session: Record<string, any> & {
|
|
802
802
|
id: string;
|
|
@@ -896,12 +896,12 @@ export declare class AuthService {
|
|
|
896
896
|
updatedAt: Date;
|
|
897
897
|
};
|
|
898
898
|
}>;
|
|
899
|
-
readonly setPassword: import("better-auth
|
|
899
|
+
readonly setPassword: import("better-auth").StrictEndpoint<string, {
|
|
900
900
|
method: "POST";
|
|
901
|
-
body: import("better-auth
|
|
902
|
-
newPassword: import("better-auth
|
|
903
|
-
}, import("better-auth
|
|
904
|
-
use: ((inputContext: import("better-auth
|
|
901
|
+
body: import("better-auth").ZodObject<{
|
|
902
|
+
newPassword: import("better-auth").ZodString;
|
|
903
|
+
}, import("better-auth").$strip>;
|
|
904
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
905
905
|
session: {
|
|
906
906
|
session: Record<string, any> & {
|
|
907
907
|
id: string;
|
|
@@ -927,11 +927,11 @@ export declare class AuthService {
|
|
|
927
927
|
}, {
|
|
928
928
|
status: boolean;
|
|
929
929
|
}>;
|
|
930
|
-
readonly updateUser: import("better-auth
|
|
930
|
+
readonly updateUser: import("better-auth").StrictEndpoint<"/update-user", {
|
|
931
931
|
method: "POST";
|
|
932
932
|
operationId: string;
|
|
933
|
-
body: import("better-auth
|
|
934
|
-
use: ((inputContext: import("better-auth
|
|
933
|
+
body: import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodAny>;
|
|
934
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
935
935
|
session: {
|
|
936
936
|
session: Record<string, any> & {
|
|
937
937
|
id: string;
|
|
@@ -1007,9 +1007,9 @@ export declare class AuthService {
|
|
|
1007
1007
|
}, {
|
|
1008
1008
|
status: boolean;
|
|
1009
1009
|
}>;
|
|
1010
|
-
readonly deleteUser: import("better-auth
|
|
1010
|
+
readonly deleteUser: import("better-auth").StrictEndpoint<"/delete-user", {
|
|
1011
1011
|
method: "POST";
|
|
1012
|
-
use: ((inputContext: import("better-auth
|
|
1012
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1013
1013
|
session: {
|
|
1014
1014
|
session: Record<string, any> & {
|
|
1015
1015
|
id: string;
|
|
@@ -1032,11 +1032,11 @@ export declare class AuthService {
|
|
|
1032
1032
|
};
|
|
1033
1033
|
};
|
|
1034
1034
|
}>)[];
|
|
1035
|
-
body: import("better-auth
|
|
1036
|
-
callbackURL: import("better-auth
|
|
1037
|
-
password: import("better-auth
|
|
1038
|
-
token: import("better-auth
|
|
1039
|
-
}, import("better-auth
|
|
1035
|
+
body: import("better-auth").ZodObject<{
|
|
1036
|
+
callbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1037
|
+
password: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1038
|
+
token: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1039
|
+
}, import("better-auth").$strip>;
|
|
1040
1040
|
metadata: {
|
|
1041
1041
|
openapi: {
|
|
1042
1042
|
operationId: string;
|
|
@@ -1094,12 +1094,12 @@ export declare class AuthService {
|
|
|
1094
1094
|
success: boolean;
|
|
1095
1095
|
message: string;
|
|
1096
1096
|
}>;
|
|
1097
|
-
readonly requestPasswordReset: import("better-auth
|
|
1097
|
+
readonly requestPasswordReset: import("better-auth").StrictEndpoint<"/request-password-reset", {
|
|
1098
1098
|
method: "POST";
|
|
1099
|
-
body: import("better-auth
|
|
1100
|
-
email: import("better-auth
|
|
1101
|
-
redirectTo: import("better-auth
|
|
1102
|
-
}, import("better-auth
|
|
1099
|
+
body: import("better-auth").ZodObject<{
|
|
1100
|
+
email: import("better-auth").ZodEmail;
|
|
1101
|
+
redirectTo: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1102
|
+
}, import("better-auth").$strip>;
|
|
1103
1103
|
metadata: {
|
|
1104
1104
|
openapi: {
|
|
1105
1105
|
operationId: string;
|
|
@@ -1130,13 +1130,13 @@ export declare class AuthService {
|
|
|
1130
1130
|
status: boolean;
|
|
1131
1131
|
message: string;
|
|
1132
1132
|
}>;
|
|
1133
|
-
readonly requestPasswordResetCallback: import("better-auth
|
|
1133
|
+
readonly requestPasswordResetCallback: import("better-auth").StrictEndpoint<"/reset-password/:token", {
|
|
1134
1134
|
method: "GET";
|
|
1135
1135
|
operationId: string;
|
|
1136
|
-
query: import("better-auth
|
|
1137
|
-
callbackURL: import("better-auth
|
|
1138
|
-
}, import("better-auth
|
|
1139
|
-
use: ((inputContext: import("better-auth
|
|
1136
|
+
query: import("better-auth").ZodObject<{
|
|
1137
|
+
callbackURL: import("better-auth").ZodString;
|
|
1138
|
+
}, import("better-auth").$strip>;
|
|
1139
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>)[];
|
|
1140
1140
|
metadata: {
|
|
1141
1141
|
openapi: {
|
|
1142
1142
|
operationId: string;
|
|
@@ -1178,10 +1178,10 @@ export declare class AuthService {
|
|
|
1178
1178
|
};
|
|
1179
1179
|
};
|
|
1180
1180
|
}, never>;
|
|
1181
|
-
readonly listSessions: import("better-auth
|
|
1181
|
+
readonly listSessions: import("better-auth").StrictEndpoint<"/list-sessions", {
|
|
1182
1182
|
method: "GET";
|
|
1183
1183
|
operationId: string;
|
|
1184
|
-
use: ((inputContext: import("better-auth
|
|
1184
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1185
1185
|
session: {
|
|
1186
1186
|
session: Record<string, any> & {
|
|
1187
1187
|
id: string;
|
|
@@ -1226,7 +1226,7 @@ export declare class AuthService {
|
|
|
1226
1226
|
};
|
|
1227
1227
|
};
|
|
1228
1228
|
};
|
|
1229
|
-
}, import("better-auth
|
|
1229
|
+
}, import("better-auth").Prettify<{
|
|
1230
1230
|
id: string;
|
|
1231
1231
|
createdAt: Date;
|
|
1232
1232
|
updatedAt: Date;
|
|
@@ -1236,12 +1236,12 @@ export declare class AuthService {
|
|
|
1236
1236
|
ipAddress?: string | null | undefined | undefined;
|
|
1237
1237
|
userAgent?: string | null | undefined | undefined;
|
|
1238
1238
|
}>[]>;
|
|
1239
|
-
readonly revokeSession: import("better-auth
|
|
1239
|
+
readonly revokeSession: import("better-auth").StrictEndpoint<"/revoke-session", {
|
|
1240
1240
|
method: "POST";
|
|
1241
|
-
body: import("better-auth
|
|
1242
|
-
token: import("better-auth
|
|
1243
|
-
}, import("better-auth
|
|
1244
|
-
use: ((inputContext: import("better-auth
|
|
1241
|
+
body: import("better-auth").ZodObject<{
|
|
1242
|
+
token: import("better-auth").ZodString;
|
|
1243
|
+
}, import("better-auth").$strip>;
|
|
1244
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1245
1245
|
session: {
|
|
1246
1246
|
session: Record<string, any> & {
|
|
1247
1247
|
id: string;
|
|
@@ -1308,9 +1308,9 @@ export declare class AuthService {
|
|
|
1308
1308
|
}, {
|
|
1309
1309
|
status: boolean;
|
|
1310
1310
|
}>;
|
|
1311
|
-
readonly revokeSessions: import("better-auth
|
|
1311
|
+
readonly revokeSessions: import("better-auth").StrictEndpoint<"/revoke-sessions", {
|
|
1312
1312
|
method: "POST";
|
|
1313
|
-
use: ((inputContext: import("better-auth
|
|
1313
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1314
1314
|
session: {
|
|
1315
1315
|
session: Record<string, any> & {
|
|
1316
1316
|
id: string;
|
|
@@ -1361,10 +1361,10 @@ export declare class AuthService {
|
|
|
1361
1361
|
}, {
|
|
1362
1362
|
status: boolean;
|
|
1363
1363
|
}>;
|
|
1364
|
-
readonly revokeOtherSessions: import("better-auth
|
|
1364
|
+
readonly revokeOtherSessions: import("better-auth").StrictEndpoint<"/revoke-other-sessions", {
|
|
1365
1365
|
method: "POST";
|
|
1366
1366
|
requireHeaders: true;
|
|
1367
|
-
use: ((inputContext: import("better-auth
|
|
1367
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1368
1368
|
session: {
|
|
1369
1369
|
session: Record<string, any> & {
|
|
1370
1370
|
id: string;
|
|
@@ -1414,26 +1414,26 @@ export declare class AuthService {
|
|
|
1414
1414
|
}, {
|
|
1415
1415
|
status: boolean;
|
|
1416
1416
|
}>;
|
|
1417
|
-
readonly linkSocialAccount: import("better-auth
|
|
1417
|
+
readonly linkSocialAccount: import("better-auth").StrictEndpoint<"/link-social", {
|
|
1418
1418
|
method: "POST";
|
|
1419
1419
|
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
|
|
1420
|
+
body: import("better-auth").ZodObject<{
|
|
1421
|
+
callbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1422
|
+
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>>;
|
|
1423
|
+
idToken: import("better-auth").ZodOptional<import("better-auth").ZodObject<{
|
|
1424
|
+
token: import("better-auth").ZodString;
|
|
1425
|
+
nonce: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1426
|
+
accessToken: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1427
|
+
refreshToken: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1428
|
+
scopes: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodString>>;
|
|
1429
|
+
}, import("better-auth").$strip>>;
|
|
1430
|
+
requestSignUp: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
|
|
1431
|
+
scopes: import("better-auth").ZodOptional<import("better-auth").ZodArray<import("better-auth").ZodString>>;
|
|
1432
|
+
errorCallbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1433
|
+
disableRedirect: import("better-auth").ZodOptional<import("better-auth").ZodBoolean>;
|
|
1434
|
+
additionalData: import("better-auth").ZodOptional<import("better-auth").ZodRecord<import("better-auth").ZodString, import("better-auth").ZodAny>>;
|
|
1435
|
+
}, import("better-auth").$strip>;
|
|
1436
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1437
1437
|
session: {
|
|
1438
1438
|
session: Record<string, any> & {
|
|
1439
1439
|
id: string;
|
|
@@ -1492,9 +1492,9 @@ export declare class AuthService {
|
|
|
1492
1492
|
url: string;
|
|
1493
1493
|
redirect: boolean;
|
|
1494
1494
|
}>;
|
|
1495
|
-
readonly listUserAccounts: import("better-auth
|
|
1495
|
+
readonly listUserAccounts: import("better-auth").StrictEndpoint<"/list-accounts", {
|
|
1496
1496
|
method: "GET";
|
|
1497
|
-
use: ((inputContext: import("better-auth
|
|
1497
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1498
1498
|
session: {
|
|
1499
1499
|
session: Record<string, any> & {
|
|
1500
1500
|
id: string;
|
|
@@ -1576,13 +1576,13 @@ export declare class AuthService {
|
|
|
1576
1576
|
userId: string;
|
|
1577
1577
|
scopes: string[];
|
|
1578
1578
|
}[]>;
|
|
1579
|
-
readonly deleteUserCallback: import("better-auth
|
|
1579
|
+
readonly deleteUserCallback: import("better-auth").StrictEndpoint<"/delete-user/callback", {
|
|
1580
1580
|
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
|
|
1581
|
+
query: import("better-auth").ZodObject<{
|
|
1582
|
+
token: import("better-auth").ZodString;
|
|
1583
|
+
callbackURL: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1584
|
+
}, import("better-auth").$strip>;
|
|
1585
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<void>)[];
|
|
1586
1586
|
metadata: {
|
|
1587
1587
|
openapi: {
|
|
1588
1588
|
description: string;
|
|
@@ -1616,13 +1616,13 @@ export declare class AuthService {
|
|
|
1616
1616
|
success: boolean;
|
|
1617
1617
|
message: string;
|
|
1618
1618
|
}>;
|
|
1619
|
-
readonly unlinkAccount: import("better-auth
|
|
1619
|
+
readonly unlinkAccount: import("better-auth").StrictEndpoint<"/unlink-account", {
|
|
1620
1620
|
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
|
|
1621
|
+
body: import("better-auth").ZodObject<{
|
|
1622
|
+
providerId: import("better-auth").ZodString;
|
|
1623
|
+
accountId: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1624
|
+
}, import("better-auth").$strip>;
|
|
1625
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1626
1626
|
session: {
|
|
1627
1627
|
session: Record<string, any> & {
|
|
1628
1628
|
id: string;
|
|
@@ -1670,13 +1670,13 @@ export declare class AuthService {
|
|
|
1670
1670
|
}, {
|
|
1671
1671
|
status: boolean;
|
|
1672
1672
|
}>;
|
|
1673
|
-
readonly refreshToken: import("better-auth
|
|
1673
|
+
readonly refreshToken: import("better-auth").StrictEndpoint<"/refresh-token", {
|
|
1674
1674
|
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
|
|
1675
|
+
body: import("better-auth").ZodObject<{
|
|
1676
|
+
providerId: import("better-auth").ZodString;
|
|
1677
|
+
accountId: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1678
|
+
userId: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1679
|
+
}, import("better-auth").$strip>;
|
|
1680
1680
|
metadata: {
|
|
1681
1681
|
openapi: {
|
|
1682
1682
|
description: string;
|
|
@@ -1729,13 +1729,13 @@ export declare class AuthService {
|
|
|
1729
1729
|
providerId: string;
|
|
1730
1730
|
accountId: string;
|
|
1731
1731
|
}>;
|
|
1732
|
-
readonly getAccessToken: import("better-auth
|
|
1732
|
+
readonly getAccessToken: import("better-auth").StrictEndpoint<"/get-access-token", {
|
|
1733
1733
|
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
|
|
1734
|
+
body: import("better-auth").ZodObject<{
|
|
1735
|
+
providerId: import("better-auth").ZodString;
|
|
1736
|
+
accountId: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1737
|
+
userId: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1738
|
+
}, import("better-auth").$strip>;
|
|
1739
1739
|
metadata: {
|
|
1740
1740
|
openapi: {
|
|
1741
1741
|
description: string;
|
|
@@ -1784,9 +1784,9 @@ export declare class AuthService {
|
|
|
1784
1784
|
scopes: string[];
|
|
1785
1785
|
idToken: string | undefined;
|
|
1786
1786
|
}>;
|
|
1787
|
-
readonly accountInfo: import("better-auth
|
|
1787
|
+
readonly accountInfo: import("better-auth").StrictEndpoint<"/account-info", {
|
|
1788
1788
|
method: "GET";
|
|
1789
|
-
use: ((inputContext: import("better-auth
|
|
1789
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1790
1790
|
session: {
|
|
1791
1791
|
session: Record<string, any> & {
|
|
1792
1792
|
id: string;
|
|
@@ -1856,11 +1856,11 @@ export declare class AuthService {
|
|
|
1856
1856
|
};
|
|
1857
1857
|
};
|
|
1858
1858
|
};
|
|
1859
|
-
query: import("better-auth
|
|
1860
|
-
accountId: import("better-auth
|
|
1861
|
-
}, import("better-auth
|
|
1859
|
+
query: import("better-auth").ZodOptional<import("better-auth").ZodObject<{
|
|
1860
|
+
accountId: import("better-auth").ZodOptional<import("better-auth").ZodString>;
|
|
1861
|
+
}, import("better-auth").$strip>>;
|
|
1862
1862
|
}, {
|
|
1863
|
-
user: import("better-auth
|
|
1863
|
+
user: import("better-auth").OAuth2UserInfo;
|
|
1864
1864
|
data: Record<string, any>;
|
|
1865
1865
|
} | null>;
|
|
1866
1866
|
}>;
|