@aura-stack/auth 0.4.0 → 0.5.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/@types/index.d.ts +6 -2
- package/dist/@types/router.d.d.ts +6 -2
- package/dist/actions/callback/access-token.cjs +103 -59
- package/dist/actions/callback/access-token.d.ts +7 -3
- package/dist/actions/callback/access-token.js +3 -3
- package/dist/actions/callback/callback.cjs +200 -134
- package/dist/actions/callback/callback.d.ts +32 -3
- package/dist/actions/callback/callback.js +11 -12
- package/dist/actions/callback/userinfo.cjs +103 -70
- package/dist/actions/callback/userinfo.d.ts +6 -2
- package/dist/actions/callback/userinfo.js +7 -8
- package/dist/actions/csrfToken/csrfToken.cjs +7 -15
- package/dist/actions/csrfToken/csrfToken.d.ts +3 -1
- package/dist/actions/csrfToken/csrfToken.js +7 -8
- package/dist/actions/index.cjs +502 -295
- package/dist/actions/index.d.ts +5 -2
- package/dist/actions/index.js +23 -20
- package/dist/actions/session/session.cjs +76 -24
- package/dist/actions/session/session.d.ts +3 -1
- package/dist/actions/session/session.js +6 -4
- package/dist/actions/signIn/authorization-url.cjs +288 -0
- package/dist/actions/signIn/authorization-url.d.ts +31 -0
- package/dist/actions/signIn/authorization-url.js +16 -0
- package/dist/actions/signIn/authorization.cjs +91 -132
- package/dist/actions/signIn/authorization.d.ts +17 -16
- package/dist/actions/signIn/authorization.js +8 -7
- package/dist/actions/signIn/signIn.cjs +319 -191
- package/dist/actions/signIn/signIn.d.ts +32 -3
- package/dist/actions/signIn/signIn.js +10 -9
- package/dist/actions/signOut/signOut.cjs +211 -212
- package/dist/actions/signOut/signOut.d.ts +9 -1
- package/dist/actions/signOut/signOut.js +9 -10
- package/dist/api/createApi.cjs +750 -0
- package/dist/api/createApi.d.ts +12 -0
- package/dist/api/createApi.js +19 -0
- package/dist/api/getSession.cjs +141 -0
- package/dist/api/getSession.d.ts +16 -0
- package/dist/api/getSession.js +10 -0
- package/dist/api/signIn.cjs +549 -0
- package/dist/api/signIn.d.ts +26 -0
- package/dist/api/signIn.js +15 -0
- package/dist/api/signOut.cjs +279 -0
- package/dist/api/signOut.d.ts +16 -0
- package/dist/api/signOut.js +13 -0
- package/dist/assert.cjs +42 -9
- package/dist/assert.d.ts +8 -4
- package/dist/assert.js +5 -5
- package/dist/{chunk-KJBAQZX2.js → chunk-2A5B7GWR.js} +44 -11
- package/dist/chunk-2GQLSIJ2.js +40 -0
- package/dist/chunk-2IR674WX.js +44 -0
- package/dist/chunk-3J5TUH2I.js +50 -0
- package/dist/chunk-4RWSYUKX.js +98 -0
- package/dist/chunk-5X7JZMEF.js +0 -0
- package/dist/{chunk-TZB6MUXN.js → chunk-7BE46WWS.js} +21 -11
- package/dist/chunk-7YYXFKLR.js +35 -0
- package/dist/chunk-C3A37LQC.js +33 -0
- package/dist/chunk-CITNGXDA.js +31 -0
- package/dist/chunk-CWX724AG.js +78 -0
- package/dist/chunk-D2CSIUKP.js +74 -0
- package/dist/{chunk-ICAZ4OVS.js → chunk-FPCVZUVG.js} +2 -2
- package/dist/{chunk-XGLBNXL4.js → chunk-GNNBM2WJ.js} +17 -9
- package/dist/chunk-JOCGX3RP.js +59 -0
- package/dist/chunk-KBXWTD6E.js +94 -0
- package/dist/{chunk-XUP6KKNG.js → chunk-LATR3NIV.js} +48 -37
- package/dist/chunk-LAYPUDQF.js +39 -0
- package/dist/chunk-LX3TJ2TJ.js +294 -0
- package/dist/{chunk-6MXFPFR3.js → chunk-NHZBQNRR.js} +19 -19
- package/dist/{chunk-TM5IPSNF.js → chunk-PDP3PHB3.js} +33 -19
- package/dist/chunk-PHYNROD4.js +47 -0
- package/dist/chunk-QQEKY4XP.js +29 -0
- package/dist/{chunk-VNCNJKS2.js → chunk-U4RK4LKJ.js} +82 -1
- package/dist/{chunk-RRLIF4PQ.js → chunk-U5663F2U.js} +16 -1
- package/dist/chunk-UN7X6SU5.js +53 -0
- package/dist/chunk-UZQJJD6A.js +100 -0
- package/dist/{chunk-NUDITUKX.js → chunk-V6LLEAR4.js} +22 -15
- package/dist/{chunk-4MYWAOLG.js → chunk-WHNDRO3N.js} +20 -1
- package/dist/{chunk-5W4BRQYG.js → chunk-XY5R3EHH.js} +6 -3
- package/dist/client/client.cjs +135 -0
- package/dist/client/client.d.ts +85 -0
- package/dist/client/client.js +9 -0
- package/dist/client/index.cjs +135 -0
- package/dist/client/index.d.ts +14 -0
- package/dist/client/index.js +10 -0
- package/dist/context.cjs +1237 -0
- package/dist/context.d.ts +16 -0
- package/dist/context.js +28 -0
- package/dist/cookie.cjs +33 -2
- package/dist/cookie.d.ts +9 -5
- package/dist/cookie.js +3 -2
- package/dist/createAuth.cjs +2320 -0
- package/dist/createAuth.d.ts +12 -0
- package/dist/createAuth.js +48 -0
- package/dist/env.cjs +24 -2
- package/dist/env.d.ts +4 -1
- package/dist/env.js +9 -3
- package/dist/errors.cjs +17 -0
- package/dist/errors.d.ts +13 -3
- package/dist/errors.js +5 -1
- package/dist/{index-CSyIJmCM.d.ts → index-_aXtxb_s.d.ts} +383 -13
- package/dist/index.cjs +2135 -1547
- package/dist/index.d.ts +9 -30
- package/dist/index.js +46 -119
- package/dist/jose.cjs +52 -14
- package/dist/jose.d.ts +12 -25
- package/dist/jose.js +11 -3
- package/dist/logger.cjs +132 -0
- package/dist/logger.d.ts +6 -2
- package/dist/logger.js +10 -1
- package/dist/oauth/atlassian.cjs +57 -0
- package/dist/oauth/atlassian.d.ts +12 -0
- package/dist/oauth/atlassian.js +6 -0
- package/dist/oauth/bitbucket.d.ts +6 -2
- package/dist/oauth/discord.d.ts +6 -2
- package/dist/oauth/dropbox.cjs +53 -0
- package/dist/oauth/dropbox.d.ts +12 -0
- package/dist/oauth/dropbox.js +6 -0
- package/dist/oauth/figma.d.ts +6 -2
- package/dist/oauth/github.d.ts +6 -2
- package/dist/oauth/gitlab.d.ts +6 -2
- package/dist/oauth/index.cjs +278 -88
- package/dist/oauth/index.d.ts +6 -2
- package/dist/oauth/index.js +27 -11
- package/dist/oauth/mailchimp.d.ts +6 -2
- package/dist/oauth/notion.cjs +131 -0
- package/dist/oauth/notion.d.ts +12 -0
- package/dist/oauth/notion.js +9 -0
- package/dist/oauth/pinterest.d.ts +6 -2
- package/dist/oauth/spotify.d.ts +6 -2
- package/dist/oauth/strava.d.ts +6 -2
- package/dist/oauth/twitch.cjs +95 -0
- package/dist/oauth/twitch.d.ts +12 -0
- package/dist/oauth/twitch.js +7 -0
- package/dist/oauth/x.d.ts +6 -2
- package/dist/schemas.cjs +84 -51
- package/dist/schemas.d.ts +103 -23
- package/dist/schemas.js +1 -1
- package/dist/secure.cjs +36 -36
- package/dist/secure.d.ts +10 -4
- package/dist/secure.js +7 -6
- package/dist/utils.cjs +109 -3
- package/dist/utils.d.ts +15 -4
- package/dist/utils.js +11 -4
- package/package.json +9 -5
- package/dist/chunk-4EKY7655.js +0 -123
- package/dist/chunk-7QF22LHP.js +0 -67
- package/dist/chunk-ALG3GIV4.js +0 -95
- package/dist/chunk-FRJFWTOY.js +0 -70
- package/dist/chunk-PHFH2MGS.js +0 -36
- package/dist/chunk-QQVSRXGX.js +0 -149
package/dist/@types/index.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import 'zod';
|
|
2
|
-
export {
|
|
2
|
+
export { f as APIErrorMap, aA as AccessTokenError, q as AuthAPI, p as AuthClient, l as AuthClientOptions, A as AuthConfig, r as AuthInstance, d as AuthInternalErrorCode, c as AuthRuntimeConfig, e as AuthSecurityErrorCode, aB as AuthorizationError, aC as AuthorizeParams, B as BuiltInOAuthProvider, C as CookieConfig, aD as CookieName, b as CookieStoreConfig, aE as CookieStrategyAttributes, E as ErrorType, F as FunctionAPIContext, aF as GetSessionAPI, G as GetSessionAPIOptions, aG as HostCookie, I as InternalContext, a as InternalLogger, J as JWTPayloadWithToken, aH as JWTStandardClaims, s as JoseInstance, L as LogLevel, t as Logger, aI as OAuthEnv, aJ as OAuthError, k as OAuthProvider, u as OAuthProviderConfig, j as OAuthProviderCredentials, O as OAuthProviderRecord, aK as ResponseType, R as RouterGlobalContext, aL as SecureCookie, m as Session, S as SessionResponse, aM as Severity, g as SignInAPIOptions, n as SignInOptions, h as SignInReturn, i as SignOutAPIOptions, o as SignOutOptions, aN as StandardCookie, aO as SyslogOptions, aP as TokenRevocationError, T as TrustedOrigin, U as User } from '../index-_aXtxb_s.js';
|
|
3
3
|
import '../schemas.js';
|
|
4
|
-
import '../jose.js';
|
|
5
4
|
import '@aura-stack/router/cookie';
|
|
6
5
|
export { LiteralUnion, Prettify } from './utility.js';
|
|
6
|
+
import '@aura-stack/router';
|
|
7
7
|
import '@aura-stack/jose/jose';
|
|
8
8
|
import '@aura-stack/jose';
|
|
9
|
+
import '@aura-stack/jose/crypto';
|
|
10
|
+
import 'jose';
|
|
11
|
+
import 'zod/v4/core';
|
|
12
|
+
import 'zod/v4';
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { R as RouterGlobalContext } from '../index-
|
|
1
|
+
import { R as RouterGlobalContext } from '../index-_aXtxb_s.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import '../schemas.js';
|
|
4
|
-
import '
|
|
4
|
+
import 'zod/v4';
|
|
5
5
|
import '@aura-stack/jose';
|
|
6
6
|
import '@aura-stack/jose/jose';
|
|
7
|
+
import '@aura-stack/jose/crypto';
|
|
7
8
|
import '@aura-stack/router/cookie';
|
|
8
9
|
import './utility.js';
|
|
10
|
+
import 'jose';
|
|
11
|
+
import '@aura-stack/router';
|
|
12
|
+
import 'zod/v4/core';
|
|
9
13
|
|
|
10
14
|
declare module "@aura-stack/router" {
|
|
11
15
|
interface GlobalContext extends RouterGlobalContext {}
|
|
@@ -60,40 +60,73 @@ var AuthInternalError = class extends Error {
|
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
// src/schemas.ts
|
|
63
|
-
var
|
|
64
|
-
var
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
63
|
+
var import_v4 = require("zod/v4");
|
|
64
|
+
var AuthorizeConfigSchema = import_v4.z.union([
|
|
65
|
+
(0, import_v4.string)().url(),
|
|
66
|
+
(0, import_v4.object)({
|
|
67
|
+
url: (0, import_v4.string)().url(),
|
|
68
|
+
params: (0, import_v4.object)({
|
|
69
|
+
responseType: (0, import_v4.enum)(["code", "token", "id_token", "refresh_token"]).optional(),
|
|
70
|
+
scope: (0, import_v4.string)().optional()
|
|
71
|
+
})
|
|
72
|
+
})
|
|
73
|
+
]);
|
|
74
|
+
var AccessTokenConfigSchema = import_v4.z.union([
|
|
75
|
+
(0, import_v4.string)().url(),
|
|
76
|
+
(0, import_v4.object)({
|
|
77
|
+
url: (0, import_v4.string)().url(),
|
|
78
|
+
headers: import_v4.z.record((0, import_v4.string)(), (0, import_v4.string)()).optional()
|
|
79
|
+
})
|
|
80
|
+
]);
|
|
81
|
+
var UserInfoConfigSchema = import_v4.z.union([
|
|
82
|
+
(0, import_v4.string)().url(),
|
|
83
|
+
(0, import_v4.object)({
|
|
84
|
+
url: (0, import_v4.string)().url(),
|
|
85
|
+
headers: import_v4.z.record((0, import_v4.string)(), (0, import_v4.string)()).optional(),
|
|
86
|
+
method: (0, import_v4.string)().optional()
|
|
87
|
+
})
|
|
88
|
+
]);
|
|
89
|
+
var OAuthProviderCredentialsSchema = (0, import_v4.object)({
|
|
90
|
+
id: (0, import_v4.string)(),
|
|
91
|
+
name: (0, import_v4.string)(),
|
|
92
|
+
authorize: AuthorizeConfigSchema.optional(),
|
|
93
|
+
/** @deprecated */
|
|
94
|
+
authorizeURL: (0, import_v4.string)().url().optional(),
|
|
95
|
+
accessToken: AccessTokenConfigSchema,
|
|
96
|
+
/** @deprecated */
|
|
97
|
+
scope: (0, import_v4.string)().optional(),
|
|
98
|
+
userInfo: UserInfoConfigSchema,
|
|
99
|
+
/** @deprecated */
|
|
100
|
+
responseType: (0, import_v4.enum)(["code", "token", "id_token", "refresh_token"]).optional(),
|
|
101
|
+
clientId: (0, import_v4.string)(),
|
|
102
|
+
clientSecret: (0, import_v4.string)(),
|
|
103
|
+
profile: import_v4.z.function().optional()
|
|
75
104
|
});
|
|
76
|
-
var OAuthProviderConfigSchema = (0,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
105
|
+
var OAuthProviderConfigSchema = (0, import_v4.object)({
|
|
106
|
+
authorize: AuthorizeConfigSchema.optional(),
|
|
107
|
+
/** @deprecated */
|
|
108
|
+
authorizeURL: (0, import_v4.string)().url().optional(),
|
|
109
|
+
accessToken: AccessTokenConfigSchema,
|
|
110
|
+
/** @deprecated */
|
|
111
|
+
scope: (0, import_v4.string)().optional(),
|
|
112
|
+
userInfo: UserInfoConfigSchema,
|
|
113
|
+
/** @deprecated */
|
|
114
|
+
responseType: (0, import_v4.enum)(["code", "token", "id_token", "refresh_token"]).optional(),
|
|
115
|
+
clientId: (0, import_v4.string)(),
|
|
116
|
+
clientSecret: (0, import_v4.string)()
|
|
84
117
|
});
|
|
85
118
|
var OAuthAuthorization = OAuthProviderConfigSchema.extend({
|
|
86
|
-
redirectURI: (0,
|
|
87
|
-
state: (0,
|
|
88
|
-
codeChallenge: (0,
|
|
89
|
-
codeChallengeMethod: (0,
|
|
119
|
+
redirectURI: (0, import_v4.string)(),
|
|
120
|
+
state: (0, import_v4.string)(),
|
|
121
|
+
codeChallenge: (0, import_v4.string)(),
|
|
122
|
+
codeChallengeMethod: (0, import_v4.enum)(["plain", "S256"])
|
|
90
123
|
});
|
|
91
|
-
var OAuthAuthorizationResponse = (0,
|
|
92
|
-
state: (0,
|
|
93
|
-
code: (0,
|
|
124
|
+
var OAuthAuthorizationResponse = (0, import_v4.object)({
|
|
125
|
+
state: (0, import_v4.string)({ message: "Missing state parameter in the OAuth authorization response." }),
|
|
126
|
+
code: (0, import_v4.string)({ message: "Missing code parameter in the OAuth authorization response." })
|
|
94
127
|
});
|
|
95
|
-
var OAuthAuthorizationErrorResponse = (0,
|
|
96
|
-
error: (0,
|
|
128
|
+
var OAuthAuthorizationErrorResponse = (0, import_v4.object)({
|
|
129
|
+
error: (0, import_v4.enum)([
|
|
97
130
|
"invalid_request",
|
|
98
131
|
"unauthorized_client",
|
|
99
132
|
"access_denied",
|
|
@@ -102,24 +135,24 @@ var OAuthAuthorizationErrorResponse = (0, import_zod.object)({
|
|
|
102
135
|
"server_error",
|
|
103
136
|
"temporarily_unavailable"
|
|
104
137
|
]),
|
|
105
|
-
error_description: (0,
|
|
106
|
-
error_uri: (0,
|
|
107
|
-
state: (0,
|
|
138
|
+
error_description: (0, import_v4.string)().optional(),
|
|
139
|
+
error_uri: (0, import_v4.string)().optional(),
|
|
140
|
+
state: (0, import_v4.string)()
|
|
108
141
|
});
|
|
109
142
|
var OAuthAccessToken = OAuthProviderConfigSchema.extend({
|
|
110
|
-
redirectURI: (0,
|
|
111
|
-
code: (0,
|
|
112
|
-
codeVerifier: (0,
|
|
143
|
+
redirectURI: (0, import_v4.string)(),
|
|
144
|
+
code: (0, import_v4.string)(),
|
|
145
|
+
codeVerifier: (0, import_v4.string)().min(43).max(128)
|
|
113
146
|
});
|
|
114
|
-
var OAuthAccessTokenResponse = (0,
|
|
115
|
-
access_token: (0,
|
|
116
|
-
token_type: (0,
|
|
117
|
-
expires_in: (0,
|
|
118
|
-
refresh_token: (0,
|
|
119
|
-
scope: (0,
|
|
147
|
+
var OAuthAccessTokenResponse = (0, import_v4.object)({
|
|
148
|
+
access_token: (0, import_v4.string)(),
|
|
149
|
+
token_type: (0, import_v4.string)().optional(),
|
|
150
|
+
expires_in: (0, import_v4.number)().optional(),
|
|
151
|
+
refresh_token: (0, import_v4.string)().optional(),
|
|
152
|
+
scope: (0, import_v4.union)([(0, import_v4.string)().optional().or((0, import_v4.null)()), (0, import_v4.array)((0, import_v4.string)()).optional()])
|
|
120
153
|
});
|
|
121
|
-
var OAuthAccessTokenErrorResponse = (0,
|
|
122
|
-
error: (0,
|
|
154
|
+
var OAuthAccessTokenErrorResponse = (0, import_v4.object)({
|
|
155
|
+
error: (0, import_v4.enum)([
|
|
123
156
|
"invalid_request",
|
|
124
157
|
"invalid_client",
|
|
125
158
|
"invalid_grant",
|
|
@@ -127,45 +160,56 @@ var OAuthAccessTokenErrorResponse = (0, import_zod.object)({
|
|
|
127
160
|
"unsupported_grant_type",
|
|
128
161
|
"invalid_scope"
|
|
129
162
|
]),
|
|
130
|
-
error_description: (0,
|
|
131
|
-
error_uri: (0,
|
|
163
|
+
error_description: (0, import_v4.string)().optional(),
|
|
164
|
+
error_uri: (0, import_v4.string)().optional()
|
|
132
165
|
});
|
|
133
|
-
var OAuthErrorResponse = (0,
|
|
134
|
-
error: (0,
|
|
135
|
-
error_description: (0,
|
|
166
|
+
var OAuthErrorResponse = (0, import_v4.object)({
|
|
167
|
+
error: (0, import_v4.string)(),
|
|
168
|
+
error_description: (0, import_v4.string)().optional()
|
|
136
169
|
});
|
|
137
|
-
var OAuthEnvSchema = (0,
|
|
138
|
-
clientId:
|
|
139
|
-
clientSecret:
|
|
170
|
+
var OAuthEnvSchema = (0, import_v4.object)({
|
|
171
|
+
clientId: import_v4.z.string().min(1, "OAuth Client ID is required in the environment variables."),
|
|
172
|
+
clientSecret: import_v4.z.string().min(1, "OAuth Client Secret is required in the environment variables.")
|
|
140
173
|
});
|
|
141
174
|
|
|
142
175
|
// src/actions/callback/access-token.ts
|
|
143
176
|
var createAccessToken = async (oauthConfig, redirectURI, code, codeVerifier, logger) => {
|
|
144
|
-
const
|
|
145
|
-
if (!
|
|
146
|
-
logger?.log("INVALID_OAUTH_CONFIGURATION"
|
|
177
|
+
const { accessToken, clientId, clientSecret } = oauthConfig;
|
|
178
|
+
if (!clientId || !clientSecret || !redirectURI || !code || !codeVerifier || !accessToken) {
|
|
179
|
+
logger?.log("INVALID_OAUTH_CONFIGURATION", {
|
|
180
|
+
structuredData: {
|
|
181
|
+
has_client_id: Boolean(clientId),
|
|
182
|
+
has_client_secret: Boolean(clientSecret),
|
|
183
|
+
has_access_token: Boolean(accessToken),
|
|
184
|
+
has_redirect_uri: Boolean(redirectURI),
|
|
185
|
+
has_code: Boolean(code),
|
|
186
|
+
has_code_verifier: Boolean(codeVerifier)
|
|
187
|
+
}
|
|
188
|
+
});
|
|
147
189
|
throw new AuthInternalError("INVALID_OAUTH_CONFIGURATION", "The OAuth provider configuration is invalid.");
|
|
148
190
|
}
|
|
149
|
-
const
|
|
191
|
+
const tokenURL = typeof accessToken === "string" ? accessToken : accessToken.url;
|
|
192
|
+
const extraHeaders = typeof accessToken === "string" ? void 0 : accessToken.headers;
|
|
150
193
|
try {
|
|
151
194
|
logger?.log("OAUTH_ACCESS_TOKEN_REQUEST_INITIATED", {
|
|
152
195
|
structuredData: {
|
|
153
196
|
has_client_id: Boolean(clientId),
|
|
154
|
-
redirect_uri:
|
|
197
|
+
redirect_uri: redirectURI,
|
|
155
198
|
grant_type: "authorization_code"
|
|
156
199
|
}
|
|
157
200
|
});
|
|
158
|
-
const response = await fetchAsync(
|
|
201
|
+
const response = await fetchAsync(tokenURL, {
|
|
159
202
|
method: "POST",
|
|
160
203
|
headers: {
|
|
204
|
+
...extraHeaders ?? {},
|
|
161
205
|
Accept: "application/json",
|
|
162
206
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
163
207
|
},
|
|
164
208
|
body: new URLSearchParams({
|
|
165
209
|
client_id: clientId,
|
|
166
210
|
client_secret: clientSecret,
|
|
167
|
-
code
|
|
168
|
-
redirect_uri:
|
|
211
|
+
code,
|
|
212
|
+
redirect_uri: redirectURI,
|
|
169
213
|
grant_type: "authorization_code",
|
|
170
214
|
code_verifier: codeVerifier
|
|
171
215
|
}).toString()
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { j as OAuthProviderCredentials, a as InternalLogger } from '../../index-_aXtxb_s.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import '../../schemas.js';
|
|
4
|
-
import '
|
|
4
|
+
import 'zod/v4';
|
|
5
5
|
import '@aura-stack/jose';
|
|
6
6
|
import '@aura-stack/jose/jose';
|
|
7
|
+
import '@aura-stack/jose/crypto';
|
|
7
8
|
import '@aura-stack/router/cookie';
|
|
8
9
|
import '../../@types/utility.js';
|
|
10
|
+
import 'jose';
|
|
11
|
+
import '@aura-stack/router';
|
|
12
|
+
import 'zod/v4/core';
|
|
9
13
|
|
|
10
14
|
/**
|
|
11
15
|
* Make a request to the OAuth provider to the token endpoint to exchange the authorization code provided
|
|
@@ -23,7 +27,7 @@ declare const createAccessToken: (oauthConfig: OAuthProviderCredentials, redirec
|
|
|
23
27
|
token_type?: string | undefined;
|
|
24
28
|
expires_in?: number | undefined;
|
|
25
29
|
refresh_token?: string | undefined;
|
|
26
|
-
scope?: string | null | undefined;
|
|
30
|
+
scope?: string | string[] | null | undefined;
|
|
27
31
|
}>;
|
|
28
32
|
|
|
29
33
|
export { createAccessToken };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAccessToken
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-7BE46WWS.js";
|
|
4
4
|
import "../../chunk-ZNCZVF6U.js";
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-2A5B7GWR.js";
|
|
6
|
+
import "../../chunk-U5663F2U.js";
|
|
7
7
|
export {
|
|
8
8
|
createAccessToken
|
|
9
9
|
};
|