@withwiz/toolkit 0.10.0 → 0.11.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/{chunk-XDB3K74B.js → chunk-2QO7YXTF.js} +1 -1
- package/dist/{chunk-KHXS4DGA.js → chunk-4Y5MRUMX.js} +4 -4
- package/dist/{chunk-W27FQNP6.js → chunk-5MPMPXIR.js} +1 -1
- package/dist/{chunk-465MEI5K.js → chunk-6E2Q27EN.js} +1 -1
- package/dist/chunk-6NFMRZWB.js +8 -0
- package/dist/{chunk-5Z5CZAZP.js → chunk-7IOAGJMK.js} +12 -12
- package/dist/{chunk-SROPI74N.js → chunk-AWFP2KAU.js} +1 -1
- package/dist/{chunk-Z64GNAB7.js → chunk-DISEIUYD.js} +2 -2
- package/dist/{chunk-6NEGFM32.js → chunk-DTRXWS7G.js} +25 -16
- package/dist/{chunk-VHRBXD7U.js → chunk-HNFYO5XV.js} +10 -6
- package/dist/{chunk-OII5BXCZ.js → chunk-JRORMRVN.js} +1 -1
- package/dist/{chunk-HZN44RWL.js → chunk-MJOXTFIC.js} +5 -5
- package/dist/{chunk-3P4TZM3O.js → chunk-QBXNL6QU.js} +1 -1
- package/dist/{chunk-KZ4PDS5K.js → chunk-RWN47K7J.js} +1 -1
- package/dist/{chunk-N3TCQ5BF.js → chunk-TQMQ5XXG.js} +17 -2
- package/dist/{chunk-7S2PCYNT.js → chunk-YBVZ5UVC.js} +1 -1
- package/dist/core/api-key/api-key.service.js +2 -2
- package/dist/core/api-key/index.js +5 -5
- package/dist/core/auth/adapters/sql/email-token-repository.js +2 -2
- package/dist/core/auth/adapters/sql/index.js +8 -8
- package/dist/core/auth/adapters/sql/oauth-account-repository.js +2 -2
- package/dist/core/auth/adapters/sql/user-repository.js +2 -2
- package/dist/core/auth/config.js +2 -1
- package/dist/core/auth/cookie-names.d.ts +3 -0
- package/dist/core/auth/cookie-names.js +9 -0
- package/dist/core/auth/index.js +13 -12
- package/dist/core/auth/jwt/cookie.js +4 -3
- package/dist/core/auth/jwt/index.js +4 -3
- package/dist/core/auth/oauth/index.js +7 -7
- package/dist/core/auth/oauth/providers/index.js +6 -6
- package/dist/core/auth/services/cache-token-stores.d.ts +45 -0
- package/dist/core/auth/services/cache-token-stores.js +59 -0
- package/dist/core/auth/services/index.js +8 -7
- package/dist/core/auth/services/login.service.js +4 -3
- package/dist/core/auth/services/oauth-callback.service.js +4 -3
- package/dist/core/auth/services/token-refresh.service.js +4 -3
- package/dist/core/auth/token-delivery.js +5 -4
- package/dist/core/cache/cache-factory.js +3 -3
- package/dist/core/cache/cache-invalidation.js +4 -4
- package/dist/core/cache/cache-wrapper.js +4 -4
- package/dist/core/cache/cache.js +9 -9
- package/dist/core/cache/index.js +9 -9
- package/dist/core/system/environment.js +4 -3
- package/dist/core/system/health-check.js +1 -1
- package/dist/core/system/index.js +8 -7
- package/dist/initialize.js +7 -6
- package/dist/next/auth-handlers/index.js +21 -20
- package/dist/next/auth-handlers/login.handler.js +6 -5
- package/dist/next/auth-handlers/logout.handler.js +5 -4
- package/dist/next/auth-handlers/me.handler.js +6 -5
- package/dist/next/auth-handlers/oauth-authorize.handler.js +4 -4
- package/dist/next/auth-handlers/oauth-callback.handler.js +9 -8
- package/dist/next/auth-handlers/refresh.handler.js +6 -5
- package/dist/next/auth-types/handler-types.js +5 -4
- package/dist/next/auth-types/index.js +5 -4
- package/dist/next/error/error-handler.js +2 -2
- package/dist/next/error/index.js +2 -2
- package/dist/next/middleware/auth.js +8 -7
- package/dist/next/middleware/error-handler.js +3 -3
- package/dist/next/middleware/index.js +26 -25
- package/dist/next/middleware/wrappers.js +13 -12
- package/dist/next/oapi/api-key-auth.js +3 -3
- package/dist/next/oapi/index.js +3 -3
- package/dist/next/proxy.d.ts +38 -0
- package/dist/next/proxy.js +53 -0
- package/dist/next/utils/index.js +15 -15
- package/package.json +12 -3
- package/dist/{chunk-GSRAIDD7.js → chunk-6A5JHOBB.js} +3 -3
- package/dist/{chunk-R7EFDSPZ.js → chunk-AYCXN6QJ.js} +3 -3
- package/dist/{chunk-43XXILCX.js → chunk-BTYH4MHU.js} +3 -3
- package/dist/{chunk-BICSVLN7.js → chunk-NAFMJT62.js} +6 -6
- package/dist/{chunk-P4MGYRJM.js → chunk-RWENSBNW.js} +3 -3
- package/dist/{chunk-ER6LSA4M.js → chunk-UQ3Z3ZAF.js} +6 -6
- package/dist/{chunk-5VDT3ZB4.js → chunk-VQJY52YF.js} +3 -3
- /package/dist/{chunk-UIWR5MXM.js → chunk-WYA763JL.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AUTH_ERROR_CODE_MAP
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AYCXN6QJ.js";
|
|
4
4
|
import {
|
|
5
5
|
AppError
|
|
6
6
|
} from "./chunk-ATAQRXTH.js";
|
|
@@ -11,12 +11,12 @@ import {
|
|
|
11
11
|
ERROR_CODES,
|
|
12
12
|
classifyError
|
|
13
13
|
} from "./chunk-XQIAXMRY.js";
|
|
14
|
-
import {
|
|
15
|
-
AuthError
|
|
16
|
-
} from "./chunk-5GWGARXI.js";
|
|
17
14
|
import {
|
|
18
15
|
logger
|
|
19
16
|
} from "./chunk-QAIN3WNN.js";
|
|
17
|
+
import {
|
|
18
|
+
AuthError
|
|
19
|
+
} from "./chunk-5GWGARXI.js";
|
|
20
20
|
import {
|
|
21
21
|
__spreadValues
|
|
22
22
|
} from "./chunk-N3ETBM74.js";
|
|
@@ -1,9 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
responseLoggerMiddleware
|
|
3
|
+
} from "./chunk-LCYDMYZS.js";
|
|
4
|
+
import {
|
|
5
|
+
securityMiddleware
|
|
6
|
+
} from "./chunk-Y4WPEIKW.js";
|
|
7
|
+
import {
|
|
8
|
+
adminMiddleware,
|
|
9
|
+
authMiddleware,
|
|
10
|
+
optionalAuthMiddleware
|
|
11
|
+
} from "./chunk-MJOXTFIC.js";
|
|
1
12
|
import {
|
|
2
13
|
corsMiddleware
|
|
3
14
|
} from "./chunk-37VGD4VX.js";
|
|
4
15
|
import {
|
|
5
16
|
errorHandlerMiddleware
|
|
6
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4Y5MRUMX.js";
|
|
7
18
|
import {
|
|
8
19
|
initRequestMiddleware
|
|
9
20
|
} from "./chunk-VC2E6KYQ.js";
|
|
@@ -13,17 +24,6 @@ import {
|
|
|
13
24
|
import {
|
|
14
25
|
rateLimitMiddleware
|
|
15
26
|
} from "./chunk-TRGFXIEF.js";
|
|
16
|
-
import {
|
|
17
|
-
responseLoggerMiddleware
|
|
18
|
-
} from "./chunk-LCYDMYZS.js";
|
|
19
|
-
import {
|
|
20
|
-
securityMiddleware
|
|
21
|
-
} from "./chunk-Y4WPEIKW.js";
|
|
22
|
-
import {
|
|
23
|
-
adminMiddleware,
|
|
24
|
-
authMiddleware,
|
|
25
|
-
optionalAuthMiddleware
|
|
26
|
-
} from "./chunk-HZN44RWL.js";
|
|
27
27
|
|
|
28
28
|
// src/next/middleware/wrappers.ts
|
|
29
29
|
function withPublicApi(handler) {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-MTZXWVW3.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuthManager
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UQ3Z3ZAF.js";
|
|
7
7
|
import {
|
|
8
8
|
OAUTH_STATE_COOKIE,
|
|
9
9
|
clearOAuthStateCookie,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-5GWGARXI.js";
|
|
15
15
|
import {
|
|
16
16
|
setTokenCookies
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-DTRXWS7G.js";
|
|
18
18
|
|
|
19
19
|
// src/next/auth-handlers/oauth-callback.handler.ts
|
|
20
20
|
import { NextResponse } from "next/server";
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
durationToSeconds
|
|
3
|
-
} from "./chunk-OVOBSYR4.js";
|
|
4
1
|
import {
|
|
5
2
|
getAuthConfig
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TQMQ5XXG.js";
|
|
7
4
|
import {
|
|
8
5
|
JWT_DEFAULTS
|
|
9
6
|
} from "./chunk-7YWUKMZD.js";
|
|
10
7
|
import {
|
|
8
|
+
durationToSeconds
|
|
9
|
+
} from "./chunk-OVOBSYR4.js";
|
|
10
|
+
import {
|
|
11
|
+
ACCESS_TOKEN_COOKIE,
|
|
12
|
+
REFRESH_TOKEN_COOKIE
|
|
13
|
+
} from "./chunk-6NFMRZWB.js";
|
|
14
|
+
import {
|
|
15
|
+
__spreadProps,
|
|
11
16
|
__spreadValues
|
|
12
17
|
} from "./chunk-N3ETBM74.js";
|
|
13
18
|
|
|
@@ -38,39 +43,43 @@ function setTokenCookies(response, tokenPair, options = {}) {
|
|
|
38
43
|
var _a, _b, _c;
|
|
39
44
|
const opts = __spreadValues(__spreadValues({}, getDefaultOptions()), options);
|
|
40
45
|
const maxAge = resolveMaxAge();
|
|
41
|
-
response.cookies.set(
|
|
46
|
+
response.cookies.set(ACCESS_TOKEN_COOKIE, tokenPair.accessToken, __spreadProps(__spreadValues({
|
|
42
47
|
httpOnly: true,
|
|
43
48
|
secure: opts.secure,
|
|
44
49
|
sameSite: opts.sameSite,
|
|
45
|
-
path: "/"
|
|
50
|
+
path: "/"
|
|
51
|
+
}, opts.domain ? { domain: opts.domain } : {}), {
|
|
46
52
|
maxAge: (_a = opts.accessTokenMaxAge) != null ? _a : maxAge.access
|
|
47
|
-
});
|
|
48
|
-
response.cookies.set(
|
|
53
|
+
}));
|
|
54
|
+
response.cookies.set(REFRESH_TOKEN_COOKIE, tokenPair.refreshToken, __spreadProps(__spreadValues({
|
|
49
55
|
httpOnly: true,
|
|
50
56
|
secure: opts.secure,
|
|
51
57
|
sameSite: opts.sameSite,
|
|
52
|
-
path: (_b = opts.refreshTokenPath) != null ? _b : "/api/auth"
|
|
58
|
+
path: (_b = opts.refreshTokenPath) != null ? _b : "/api/auth"
|
|
59
|
+
}, opts.domain ? { domain: opts.domain } : {}), {
|
|
53
60
|
maxAge: (_c = opts.refreshTokenMaxAge) != null ? _c : maxAge.refresh
|
|
54
|
-
});
|
|
61
|
+
}));
|
|
55
62
|
return response;
|
|
56
63
|
}
|
|
57
64
|
function clearTokenCookies(response, options = {}) {
|
|
58
65
|
var _a;
|
|
59
66
|
const opts = __spreadValues(__spreadValues({}, getDefaultOptions()), options);
|
|
60
|
-
response.cookies.set(
|
|
67
|
+
response.cookies.set(ACCESS_TOKEN_COOKIE, "", __spreadProps(__spreadValues({
|
|
61
68
|
httpOnly: true,
|
|
62
69
|
secure: opts.secure,
|
|
63
70
|
sameSite: opts.sameSite,
|
|
64
|
-
path: "/"
|
|
71
|
+
path: "/"
|
|
72
|
+
}, opts.domain ? { domain: opts.domain } : {}), {
|
|
65
73
|
maxAge: 0
|
|
66
|
-
});
|
|
67
|
-
response.cookies.set(
|
|
74
|
+
}));
|
|
75
|
+
response.cookies.set(REFRESH_TOKEN_COOKIE, "", __spreadProps(__spreadValues({
|
|
68
76
|
httpOnly: true,
|
|
69
77
|
secure: opts.secure,
|
|
70
78
|
sameSite: opts.sameSite,
|
|
71
|
-
path: (_a = opts.refreshTokenPath) != null ? _a : "/api/auth"
|
|
79
|
+
path: (_a = opts.refreshTokenPath) != null ? _a : "/api/auth"
|
|
80
|
+
}, opts.domain ? { domain: opts.domain } : {}), {
|
|
72
81
|
maxAge: 0
|
|
73
|
-
});
|
|
82
|
+
}));
|
|
74
83
|
return response;
|
|
75
84
|
}
|
|
76
85
|
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
setTokenCookies
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DTRXWS7G.js";
|
|
4
4
|
import {
|
|
5
5
|
getAuthConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TQMQ5XXG.js";
|
|
7
|
+
import {
|
|
8
|
+
ACCESS_TOKEN_COOKIE,
|
|
9
|
+
REFRESH_TOKEN_COOKIE
|
|
10
|
+
} from "./chunk-6NFMRZWB.js";
|
|
7
11
|
import {
|
|
8
12
|
__spreadValues
|
|
9
13
|
} from "./chunk-N3ETBM74.js";
|
|
@@ -21,11 +25,11 @@ async function readBodyRefreshToken(source) {
|
|
|
21
25
|
var cookieStrategy = {
|
|
22
26
|
extractAccessToken: (source) => {
|
|
23
27
|
var _a, _b;
|
|
24
|
-
return (_b = (_a = source.cookies.get(
|
|
28
|
+
return (_b = (_a = source.cookies.get(ACCESS_TOKEN_COOKIE)) == null ? void 0 : _a.value) != null ? _b : null;
|
|
25
29
|
},
|
|
26
30
|
extractRefreshToken: async (source) => {
|
|
27
31
|
var _a;
|
|
28
|
-
return (_a = source.cookies.get(
|
|
32
|
+
return (_a = source.cookies.get(REFRESH_TOKEN_COOKIE)) == null ? void 0 : _a.value;
|
|
29
33
|
},
|
|
30
34
|
buildTokenResponse: (body) => body,
|
|
31
35
|
attachCookies: (response, tokens, options) => setTokenCookies(response, tokens, options)
|
|
@@ -39,12 +43,12 @@ var headerStrategy = {
|
|
|
39
43
|
var hybridStrategy = {
|
|
40
44
|
extractAccessToken: (source, parseHeader) => {
|
|
41
45
|
var _a, _b;
|
|
42
|
-
return (_b = (_a = source.cookies.get(
|
|
46
|
+
return (_b = (_a = source.cookies.get(ACCESS_TOKEN_COOKIE)) == null ? void 0 : _a.value) != null ? _b : parseHeader(source.headers.get("authorization"));
|
|
43
47
|
},
|
|
44
48
|
// 쿠키 우선 — 쿠키가 있으면 body 를 소비하지 않는다 (빈 body 요청 보호)
|
|
45
49
|
extractRefreshToken: async (source) => {
|
|
46
50
|
var _a, _b;
|
|
47
|
-
return (_b = (_a = source.cookies.get(
|
|
51
|
+
return (_b = (_a = source.cookies.get(REFRESH_TOKEN_COOKIE)) == null ? void 0 : _a.value) != null ? _b : await readBodyRefreshToken(source);
|
|
48
52
|
},
|
|
49
53
|
buildTokenResponse: (body, fragment) => __spreadValues(__spreadValues({}, body), fragment),
|
|
50
54
|
attachCookies: (response, tokens, options) => setTokenCookies(response, tokens, options)
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
ERROR_CODES
|
|
6
6
|
} from "./chunk-XQIAXMRY.js";
|
|
7
|
+
import {
|
|
8
|
+
logger
|
|
9
|
+
} from "./chunk-QAIN3WNN.js";
|
|
7
10
|
import {
|
|
8
11
|
JWTManager
|
|
9
12
|
} from "./chunk-LWHLB2Y6.js";
|
|
10
13
|
import {
|
|
11
14
|
getTokenDeliveryStrategy
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import {
|
|
14
|
-
logger
|
|
15
|
-
} from "./chunk-QAIN3WNN.js";
|
|
15
|
+
} from "./chunk-HNFYO5XV.js";
|
|
16
16
|
import {
|
|
17
17
|
getAuthConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TQMQ5XXG.js";
|
|
19
19
|
import {
|
|
20
20
|
ROLE_DEFAULTS
|
|
21
21
|
} from "./chunk-7YWUKMZD.js";
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
JWT_DEFAULTS
|
|
3
3
|
} from "./chunk-7YWUKMZD.js";
|
|
4
|
+
import {
|
|
5
|
+
durationToSeconds
|
|
6
|
+
} from "./chunk-OVOBSYR4.js";
|
|
4
7
|
import {
|
|
5
8
|
configWarn
|
|
6
9
|
} from "./chunk-6J2EJVND.js";
|
|
@@ -9,6 +12,7 @@ import {
|
|
|
9
12
|
} from "./chunk-F3R3UYBF.js";
|
|
10
13
|
|
|
11
14
|
// src/core/auth/config.ts
|
|
15
|
+
var LONG_ACCESS_WARN_THRESHOLD_SEC = 24 * 3600;
|
|
12
16
|
function initializeAuth(config) {
|
|
13
17
|
var _a, _b, _c, _d, _e;
|
|
14
18
|
(_a = globalThis.__withwiz_config) != null ? _a : globalThis.__withwiz_config = {};
|
|
@@ -22,10 +26,21 @@ function initializeAuth(config) {
|
|
|
22
26
|
if (!config.refreshTokenExpiry) {
|
|
23
27
|
configWarn("Auth", `refreshTokenExpiry not provided, using default: ${JWT_DEFAULTS.DEFAULT_REFRESH_TOKEN_EXPIRES}`);
|
|
24
28
|
}
|
|
29
|
+
const accessTokenExpiry = (_b = config.accessTokenExpiry) != null ? _b : JWT_DEFAULTS.DEFAULT_ACCESS_TOKEN_EXPIRES;
|
|
30
|
+
const refreshTokenExpiry = (_c = config.refreshTokenExpiry) != null ? _c : JWT_DEFAULTS.DEFAULT_REFRESH_TOKEN_EXPIRES;
|
|
31
|
+
try {
|
|
32
|
+
if (durationToSeconds(accessTokenExpiry) > LONG_ACCESS_WARN_THRESHOLD_SEC) {
|
|
33
|
+
configWarn(
|
|
34
|
+
"Auth",
|
|
35
|
+
`accessTokenExpiry(${accessTokenExpiry})\uAC00 24h\uB97C \uCD08\uACFC\uD569\uB2C8\uB2E4. refresh \uD1A0\uD070\uC774 \uC788\uB2E4\uBA74 \uC9E7\uC740 access(\uC608: 15m)\uB97C \uAD8C\uC7A5\uD569\uB2C8\uB2E4 \u2014 revoke/\uB9CC\uB8CC \uD6A8\uACFC \uADF9\uB300\uD654.`
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
} catch (e) {
|
|
39
|
+
}
|
|
25
40
|
globalThis.__withwiz_config.auth = {
|
|
26
41
|
jwtSecret: config.jwtSecret,
|
|
27
|
-
accessTokenExpiry
|
|
28
|
-
refreshTokenExpiry
|
|
42
|
+
accessTokenExpiry,
|
|
43
|
+
refreshTokenExpiry,
|
|
29
44
|
cookieSecure: (_d = config.cookieSecure) != null ? _d : false,
|
|
30
45
|
tokenDelivery: (_e = config.tokenDelivery) != null ? _e : "hybrid"
|
|
31
46
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ApiKeyService
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-ZZTBIA57.js";
|
|
3
|
+
} from "../../chunk-RWENSBNW.js";
|
|
5
4
|
import "../../chunk-BTNM5YSU.js";
|
|
5
|
+
import "../../chunk-ZZTBIA57.js";
|
|
6
6
|
import "../../chunk-N3ETBM74.js";
|
|
7
7
|
export {
|
|
8
8
|
ApiKeyService
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import "../../chunk-MXWSG6ER.js";
|
|
2
2
|
import {
|
|
3
3
|
ApiKeyService
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-RWENSBNW.js";
|
|
5
|
+
import {
|
|
6
|
+
validateApiKeyRecord
|
|
7
|
+
} from "../../chunk-BTNM5YSU.js";
|
|
5
8
|
import {
|
|
6
9
|
isIpAllowed,
|
|
7
10
|
isIpInCidr
|
|
@@ -11,12 +14,9 @@ import {
|
|
|
11
14
|
hashKey,
|
|
12
15
|
keyPreview
|
|
13
16
|
} from "../../chunk-ZZTBIA57.js";
|
|
17
|
+
import "../../chunk-N3ETBM74.js";
|
|
14
18
|
import "../../chunk-CWS5RPRX.js";
|
|
15
19
|
import "../../chunk-TN5ZNYR2.js";
|
|
16
|
-
import {
|
|
17
|
-
validateApiKeyRecord
|
|
18
|
-
} from "../../chunk-BTNM5YSU.js";
|
|
19
|
-
import "../../chunk-N3ETBM74.js";
|
|
20
20
|
export {
|
|
21
21
|
ApiKeyService,
|
|
22
22
|
generateRawKey,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SqlEmailTokenRepository
|
|
3
|
-
} from "../../../../chunk-
|
|
4
|
-
import "../../../../chunk-E4TKORMQ.js";
|
|
3
|
+
} from "../../../../chunk-BTYH4MHU.js";
|
|
5
4
|
import "../../../../chunk-2JUFL4KX.js";
|
|
5
|
+
import "../../../../chunk-E4TKORMQ.js";
|
|
6
6
|
import "../../../../chunk-N3ETBM74.js";
|
|
7
7
|
export {
|
|
8
8
|
SqlEmailTokenRepository
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SqlEmailTokenRepository
|
|
3
|
+
} from "../../../../chunk-BTYH4MHU.js";
|
|
1
4
|
import {
|
|
2
5
|
SqlOAuthAccountRepository
|
|
3
|
-
} from "../../../../chunk-
|
|
6
|
+
} from "../../../../chunk-VQJY52YF.js";
|
|
4
7
|
import {
|
|
5
8
|
SqlUserRepository
|
|
6
|
-
} from "../../../../chunk-
|
|
7
|
-
import {
|
|
8
|
-
SqlEmailTokenRepository
|
|
9
|
-
} from "../../../../chunk-43XXILCX.js";
|
|
10
|
-
import {
|
|
11
|
-
resolveConfig
|
|
12
|
-
} from "../../../../chunk-E4TKORMQ.js";
|
|
9
|
+
} from "../../../../chunk-6A5JHOBB.js";
|
|
13
10
|
import {
|
|
14
11
|
ParamBuilder,
|
|
15
12
|
columnList,
|
|
16
13
|
getDialect
|
|
17
14
|
} from "../../../../chunk-2JUFL4KX.js";
|
|
15
|
+
import {
|
|
16
|
+
resolveConfig
|
|
17
|
+
} from "../../../../chunk-E4TKORMQ.js";
|
|
18
18
|
import "../../../../chunk-N3ETBM74.js";
|
|
19
19
|
export {
|
|
20
20
|
ParamBuilder,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SqlOAuthAccountRepository
|
|
3
|
-
} from "../../../../chunk-
|
|
4
|
-
import "../../../../chunk-E4TKORMQ.js";
|
|
3
|
+
} from "../../../../chunk-VQJY52YF.js";
|
|
5
4
|
import "../../../../chunk-2JUFL4KX.js";
|
|
5
|
+
import "../../../../chunk-E4TKORMQ.js";
|
|
6
6
|
import "../../../../chunk-N3ETBM74.js";
|
|
7
7
|
export {
|
|
8
8
|
SqlOAuthAccountRepository
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SqlUserRepository
|
|
3
|
-
} from "../../../../chunk-
|
|
4
|
-
import "../../../../chunk-E4TKORMQ.js";
|
|
3
|
+
} from "../../../../chunk-6A5JHOBB.js";
|
|
5
4
|
import "../../../../chunk-2JUFL4KX.js";
|
|
5
|
+
import "../../../../chunk-E4TKORMQ.js";
|
|
6
6
|
import "../../../../chunk-N3ETBM74.js";
|
|
7
7
|
export {
|
|
8
8
|
SqlUserRepository
|
package/dist/core/auth/config.js
CHANGED
|
@@ -2,8 +2,9 @@ import {
|
|
|
2
2
|
getAuthConfig,
|
|
3
3
|
initializeAuth,
|
|
4
4
|
resetAuth
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-TQMQ5XXG.js";
|
|
6
6
|
import "../../chunk-7YWUKMZD.js";
|
|
7
|
+
import "../../chunk-OVOBSYR4.js";
|
|
7
8
|
import "../../chunk-6J2EJVND.js";
|
|
8
9
|
import "../../chunk-F3R3UYBF.js";
|
|
9
10
|
import "../../chunk-N3ETBM74.js";
|
package/dist/core/auth/index.js
CHANGED
|
@@ -36,8 +36,12 @@ import {
|
|
|
36
36
|
} from "../../chunk-ILMPKSWS.js";
|
|
37
37
|
import {
|
|
38
38
|
OAuthManager
|
|
39
|
-
} from "../../chunk-
|
|
39
|
+
} from "../../chunk-UQ3Z3ZAF.js";
|
|
40
40
|
import "../../chunk-CDALZTPN.js";
|
|
41
|
+
import {
|
|
42
|
+
KakaoOAuthProvider
|
|
43
|
+
} from "../../chunk-65HVR74O.js";
|
|
44
|
+
import "../../chunk-33RIHX7O.js";
|
|
41
45
|
import "../../chunk-GSSHHVHF.js";
|
|
42
46
|
import {
|
|
43
47
|
GitHubOAuthProvider
|
|
@@ -45,11 +49,11 @@ import {
|
|
|
45
49
|
import {
|
|
46
50
|
GoogleOAuthProvider
|
|
47
51
|
} from "../../chunk-GF3DKZIW.js";
|
|
48
|
-
import {
|
|
49
|
-
KakaoOAuthProvider
|
|
50
|
-
} from "../../chunk-65HVR74O.js";
|
|
51
|
-
import "../../chunk-33RIHX7O.js";
|
|
52
52
|
import "../../chunk-JLRMET4V.js";
|
|
53
|
+
import {
|
|
54
|
+
JWTManager,
|
|
55
|
+
JWTService
|
|
56
|
+
} from "../../chunk-LWHLB2Y6.js";
|
|
53
57
|
import {
|
|
54
58
|
TokenGenerator
|
|
55
59
|
} from "../../chunk-ZZABL54F.js";
|
|
@@ -58,10 +62,6 @@ import {
|
|
|
58
62
|
PasswordStrength,
|
|
59
63
|
TokenType
|
|
60
64
|
} from "../../chunk-GH3U4WRE.js";
|
|
61
|
-
import {
|
|
62
|
-
JWTManager,
|
|
63
|
-
JWTService
|
|
64
|
-
} from "../../chunk-LWHLB2Y6.js";
|
|
65
65
|
import {
|
|
66
66
|
AUTH_ERROR_CODES,
|
|
67
67
|
AuthError,
|
|
@@ -70,12 +70,13 @@ import {
|
|
|
70
70
|
OAuthError,
|
|
71
71
|
PasswordError
|
|
72
72
|
} from "../../chunk-5GWGARXI.js";
|
|
73
|
-
import "../../chunk-
|
|
74
|
-
import "../../chunk-
|
|
75
|
-
import "../../chunk-N3TCQ5BF.js";
|
|
73
|
+
import "../../chunk-DTRXWS7G.js";
|
|
74
|
+
import "../../chunk-TQMQ5XXG.js";
|
|
76
75
|
import "../../chunk-7YWUKMZD.js";
|
|
76
|
+
import "../../chunk-OVOBSYR4.js";
|
|
77
77
|
import "../../chunk-6J2EJVND.js";
|
|
78
78
|
import "../../chunk-F3R3UYBF.js";
|
|
79
|
+
import "../../chunk-6NFMRZWB.js";
|
|
79
80
|
import "../../chunk-N3ETBM74.js";
|
|
80
81
|
export {
|
|
81
82
|
AUTH_ERROR_CODES,
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearTokenCookies,
|
|
3
3
|
setTokenCookies
|
|
4
|
-
} from "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
6
|
-
import "../../../chunk-N3TCQ5BF.js";
|
|
4
|
+
} from "../../../chunk-DTRXWS7G.js";
|
|
5
|
+
import "../../../chunk-TQMQ5XXG.js";
|
|
7
6
|
import "../../../chunk-7YWUKMZD.js";
|
|
7
|
+
import "../../../chunk-OVOBSYR4.js";
|
|
8
8
|
import "../../../chunk-6J2EJVND.js";
|
|
9
9
|
import "../../../chunk-F3R3UYBF.js";
|
|
10
|
+
import "../../../chunk-6NFMRZWB.js";
|
|
10
11
|
import "../../../chunk-N3ETBM74.js";
|
|
11
12
|
export {
|
|
12
13
|
clearTokenCookies,
|
|
@@ -6,12 +6,13 @@ import "../../../chunk-5GWGARXI.js";
|
|
|
6
6
|
import {
|
|
7
7
|
clearTokenCookies,
|
|
8
8
|
setTokenCookies
|
|
9
|
-
} from "../../../chunk-
|
|
10
|
-
import "../../../chunk-
|
|
11
|
-
import "../../../chunk-N3TCQ5BF.js";
|
|
9
|
+
} from "../../../chunk-DTRXWS7G.js";
|
|
10
|
+
import "../../../chunk-TQMQ5XXG.js";
|
|
12
11
|
import "../../../chunk-7YWUKMZD.js";
|
|
12
|
+
import "../../../chunk-OVOBSYR4.js";
|
|
13
13
|
import "../../../chunk-6J2EJVND.js";
|
|
14
14
|
import "../../../chunk-F3R3UYBF.js";
|
|
15
|
+
import "../../../chunk-6NFMRZWB.js";
|
|
15
16
|
import "../../../chunk-N3ETBM74.js";
|
|
16
17
|
export {
|
|
17
18
|
JWTManager,
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OAuthManager
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-UQ3Z3ZAF.js";
|
|
4
4
|
import "../../../chunk-CDALZTPN.js";
|
|
5
|
+
import {
|
|
6
|
+
KakaoOAuthProvider
|
|
7
|
+
} from "../../../chunk-65HVR74O.js";
|
|
8
|
+
import {
|
|
9
|
+
MetaOAuthProvider
|
|
10
|
+
} from "../../../chunk-33RIHX7O.js";
|
|
5
11
|
import {
|
|
6
12
|
MicrosoftOAuthProvider
|
|
7
13
|
} from "../../../chunk-GSSHHVHF.js";
|
|
@@ -11,12 +17,6 @@ import {
|
|
|
11
17
|
import {
|
|
12
18
|
GoogleOAuthProvider
|
|
13
19
|
} from "../../../chunk-GF3DKZIW.js";
|
|
14
|
-
import {
|
|
15
|
-
KakaoOAuthProvider
|
|
16
|
-
} from "../../../chunk-65HVR74O.js";
|
|
17
|
-
import {
|
|
18
|
-
MetaOAuthProvider
|
|
19
|
-
} from "../../../chunk-33RIHX7O.js";
|
|
20
20
|
import {
|
|
21
21
|
OAUTH_STATE_COOKIE,
|
|
22
22
|
clearOAuthStateCookie,
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import "../../../../chunk-CDALZTPN.js";
|
|
2
|
+
import {
|
|
3
|
+
KakaoOAuthProvider
|
|
4
|
+
} from "../../../../chunk-65HVR74O.js";
|
|
5
|
+
import {
|
|
6
|
+
MetaOAuthProvider
|
|
7
|
+
} from "../../../../chunk-33RIHX7O.js";
|
|
2
8
|
import {
|
|
3
9
|
MicrosoftOAuthProvider
|
|
4
10
|
} from "../../../../chunk-GSSHHVHF.js";
|
|
@@ -8,12 +14,6 @@ import {
|
|
|
8
14
|
import {
|
|
9
15
|
GoogleOAuthProvider
|
|
10
16
|
} from "../../../../chunk-GF3DKZIW.js";
|
|
11
|
-
import {
|
|
12
|
-
KakaoOAuthProvider
|
|
13
|
-
} from "../../../../chunk-65HVR74O.js";
|
|
14
|
-
import {
|
|
15
|
-
MetaOAuthProvider
|
|
16
|
-
} from "../../../../chunk-33RIHX7O.js";
|
|
17
17
|
import "../../../../chunk-5GWGARXI.js";
|
|
18
18
|
import "../../../../chunk-N3ETBM74.js";
|
|
19
19
|
export {
|