@atlasauth/nextjs 0.1.1 → 0.1.3
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/matcher.d.ts +15 -0
- package/dist/matcher.js +24 -0
- package/dist/matcher.js.map +1 -1
- package/dist/middleware.d.ts +46 -0
- package/dist/middleware.js +73 -1
- package/dist/middleware.js.map +1 -1
- package/package.json +2 -2
package/dist/matcher.d.ts
CHANGED
|
@@ -21,6 +21,21 @@
|
|
|
21
21
|
*/
|
|
22
22
|
export declare function matchesPattern(pathname: string, pattern: string): boolean;
|
|
23
23
|
export declare function matchesAny(pathname: string, patterns: readonly string[]): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* §10.1 Clerk-parity `createRouteMatcher(patterns)` — the idiom integrators write
|
|
26
|
+
* at the top of `middleware.ts` (`const isProtected = createRouteMatcher(['/dashboard(.*)'])`).
|
|
27
|
+
* Returns a predicate over anything carrying a pathname: a Next `NextRequest`
|
|
28
|
+
* (`req.nextUrl.pathname`), a plain `{ nextUrl }` / `{ url }`, or a bare path
|
|
29
|
+
* string. Uses the SAME `(.*)`-only pattern engine as the middleware, so a
|
|
30
|
+
* matcher written here and the middleware's own routing agree exactly (no second
|
|
31
|
+
* dialect, no customer regex in the auth path).
|
|
32
|
+
*/
|
|
33
|
+
export declare function createRouteMatcher(patterns: readonly string[]): (input: string | {
|
|
34
|
+
nextUrl?: {
|
|
35
|
+
pathname?: string;
|
|
36
|
+
};
|
|
37
|
+
url?: string;
|
|
38
|
+
}) => boolean;
|
|
24
39
|
export declare function isStaticAsset(pathname: string): boolean;
|
|
25
40
|
export interface MiddlewareConfig {
|
|
26
41
|
/** Routes reachable without a session. Everything else requires one. */
|
package/dist/matcher.js
CHANGED
|
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.DEFAULT_SIGN_IN_URL = void 0;
|
|
17
17
|
exports.matchesPattern = matchesPattern;
|
|
18
18
|
exports.matchesAny = matchesAny;
|
|
19
|
+
exports.createRouteMatcher = createRouteMatcher;
|
|
19
20
|
exports.isStaticAsset = isStaticAsset;
|
|
20
21
|
exports.decideRoute = decideRoute;
|
|
21
22
|
exports.safeRedirect = safeRedirect;
|
|
@@ -40,6 +41,29 @@ function matchesPattern(pathname, pattern) {
|
|
|
40
41
|
function matchesAny(pathname, patterns) {
|
|
41
42
|
return patterns.some((pattern) => matchesPattern(pathname, pattern));
|
|
42
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* §10.1 Clerk-parity `createRouteMatcher(patterns)` — the idiom integrators write
|
|
46
|
+
* at the top of `middleware.ts` (`const isProtected = createRouteMatcher(['/dashboard(.*)'])`).
|
|
47
|
+
* Returns a predicate over anything carrying a pathname: a Next `NextRequest`
|
|
48
|
+
* (`req.nextUrl.pathname`), a plain `{ nextUrl }` / `{ url }`, or a bare path
|
|
49
|
+
* string. Uses the SAME `(.*)`-only pattern engine as the middleware, so a
|
|
50
|
+
* matcher written here and the middleware's own routing agree exactly (no second
|
|
51
|
+
* dialect, no customer regex in the auth path).
|
|
52
|
+
*/
|
|
53
|
+
function createRouteMatcher(patterns) {
|
|
54
|
+
return (input) => {
|
|
55
|
+
let pathname;
|
|
56
|
+
if (typeof input === 'string') {
|
|
57
|
+
// Accept a full URL or a bare path.
|
|
58
|
+
pathname = input.startsWith('http') ? new URL(input).pathname : input;
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
pathname =
|
|
62
|
+
input.nextUrl?.pathname ?? (input.url ? new URL(input.url, 'http://x').pathname : '');
|
|
63
|
+
}
|
|
64
|
+
return matchesAny(pathname, patterns);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
43
67
|
/**
|
|
44
68
|
* Paths that are never auth decisions.
|
|
45
69
|
*
|
package/dist/matcher.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matcher.js","sourceRoot":"","sources":["../src/matcher.ts"],"names":[],"mappings":";A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AI,QAAQ,IAAI,KAAK,CAAC,QAAQ;QAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;IAE3D;;;;OAIG;IACH,IAAI,KAAK,CAAC,UAAU;QAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC;IAExD,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,IAAI,2BAAmB,CAAC;IAC1D,OAAO;QACL,MAAM,EAAE,UAAU;QAClB,EAAE,EAAE,GAAG,SAAS,iBAAiB,kBAAkB,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE;KACtE,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,YAAY,CAC1B,WAAsC,EACtC,iBAAoC,EAAE,EACtC,QAAQ,GAAG,GAAG;IAEd,IAAI,CAAC,WAAW;QAAE,OAAO,QAAQ,CAAC;IAElC,yEAAyE;IACzE,IAAI,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC;QAAE,OAAO,QAAQ,CAAC;IAClD,IAAI,WAAW,CAAC,UAAU,CAAC,GAAG,CAAC;QAAE,OAAO,WAAW,CAAC;IAEpD,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,WAAW,CAAC,CAAC;QACjC,OAAO,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;IACtE,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,QAAQ,CAAC;IAClB,CAAC;AACH,CAAC"}
|
package/dist/middleware.d.ts
CHANGED
|
@@ -66,6 +66,26 @@ export interface AuthState {
|
|
|
66
66
|
claims: SessionClaims | null;
|
|
67
67
|
}
|
|
68
68
|
export declare const SIGNED_OUT: AuthState;
|
|
69
|
+
/**
|
|
70
|
+
* §R3.1 the durable "probably signed in" signal, for the routing gate ONLY.
|
|
71
|
+
*
|
|
72
|
+
* `__session` is short-lived (~60s) and refreshed client-side, so it is briefly
|
|
73
|
+
* ABSENT between refreshes — a background tab, a slow refresh, a direct server
|
|
74
|
+
* navigation. Gating a protected route on `__session` alone therefore bounces a
|
|
75
|
+
* genuinely-signed-in user to /login in those windows (the exact bug this fixes).
|
|
76
|
+
*
|
|
77
|
+
* So when `__session` doesn't verify, we consult two durable signals the browser
|
|
78
|
+
* still carries: the non-HttpOnly hint cookie `__atlas_uat` (a Unix-seconds
|
|
79
|
+
* timestamp, `0`/absent = signed out) and, same-origin at the edge, the HttpOnly
|
|
80
|
+
* refresh cookie `__atlas_rt` (the middleware CAN read it from the request; only
|
|
81
|
+
* customer JS cannot). Either present ⇒ "probably signed in" ⇒ let the request
|
|
82
|
+
* through so the client SDK can refresh `__session` and the page re-render, INSTEAD
|
|
83
|
+
* of a false bounce. This is a routing hint, never proof of identity: a page that
|
|
84
|
+
* needs a verified user still calls `auth()`/`protect()`, which fail closed with no
|
|
85
|
+
* valid token. On real sign-out Atlas clears BOTH cookies, so the hint disappears
|
|
86
|
+
* exactly when the session does. Mirrors Clerk's `__client_uat` model.
|
|
87
|
+
*/
|
|
88
|
+
export declare function hasSignedInHint(request: EdgeRequest): boolean;
|
|
69
89
|
/**
|
|
70
90
|
* Resolve the auth state for a request.
|
|
71
91
|
*
|
|
@@ -100,4 +120,30 @@ export declare function createAuthHelper(options: AtlasMiddlewareOptions): (requ
|
|
|
100
120
|
userId: string;
|
|
101
121
|
};
|
|
102
122
|
}>;
|
|
123
|
+
/**
|
|
124
|
+
* §R3.1 Clerk-parity alias. Integrators reach for `authMiddleware` by name; it is
|
|
125
|
+
* exactly {@link atlasMiddleware}, which already reads cookies, verifies the JWT at
|
|
126
|
+
* the edge, honours the durable signed-in hint, runs the cross-property handshake,
|
|
127
|
+
* and enforces the route matcher.
|
|
128
|
+
*/
|
|
129
|
+
export declare const authMiddleware: typeof atlasMiddleware;
|
|
130
|
+
/** The profile a `currentUser()` returns — read straight from the verified session
|
|
131
|
+
* claims, so it costs no network call. `email`/`name` are present only when the
|
|
132
|
+
* instance opted into those session claims (§R3.5). */
|
|
133
|
+
export interface CurrentUser {
|
|
134
|
+
id: string;
|
|
135
|
+
orgId: string | null;
|
|
136
|
+
orgRole: string | null;
|
|
137
|
+
email: string | null;
|
|
138
|
+
name: string | null;
|
|
139
|
+
firstName: string | null;
|
|
140
|
+
lastName: string | null;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* §R3.1 `currentUser()` — the signed-in user's profile for a server component or
|
|
144
|
+
* route handler, or `null` when signed out. Built from the verified session claims
|
|
145
|
+
* (no round-trip): with the opt-in profile claims (§R3.5) it already carries email
|
|
146
|
+
* and name, so provision-on-first-login needs no `user.updated` webhook wait.
|
|
147
|
+
*/
|
|
148
|
+
export declare function createCurrentUserHelper(options: AtlasMiddlewareOptions): (request: EdgeRequest) => Promise<CurrentUser | null>;
|
|
103
149
|
export { safeRedirect };
|
package/dist/middleware.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.safeRedirect = exports.SIGNED_OUT = void 0;
|
|
3
|
+
exports.safeRedirect = exports.authMiddleware = exports.SIGNED_OUT = void 0;
|
|
4
|
+
exports.hasSignedInHint = hasSignedInHint;
|
|
4
5
|
exports.resolveAuth = resolveAuth;
|
|
5
6
|
exports.atlasMiddleware = atlasMiddleware;
|
|
6
7
|
exports.createAuthHelper = createAuthHelper;
|
|
8
|
+
exports.createCurrentUserHelper = createCurrentUserHelper;
|
|
7
9
|
const backend_1 = require("@atlasauth/backend");
|
|
8
10
|
const matcher_1 = require("./matcher");
|
|
9
11
|
Object.defineProperty(exports, "safeRedirect", { enumerable: true, get: function () { return matcher_1.safeRedirect; } });
|
|
@@ -24,6 +26,33 @@ function readCookie(header, name) {
|
|
|
24
26
|
}
|
|
25
27
|
return undefined;
|
|
26
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* §R3.1 the durable "probably signed in" signal, for the routing gate ONLY.
|
|
31
|
+
*
|
|
32
|
+
* `__session` is short-lived (~60s) and refreshed client-side, so it is briefly
|
|
33
|
+
* ABSENT between refreshes — a background tab, a slow refresh, a direct server
|
|
34
|
+
* navigation. Gating a protected route on `__session` alone therefore bounces a
|
|
35
|
+
* genuinely-signed-in user to /login in those windows (the exact bug this fixes).
|
|
36
|
+
*
|
|
37
|
+
* So when `__session` doesn't verify, we consult two durable signals the browser
|
|
38
|
+
* still carries: the non-HttpOnly hint cookie `__atlas_uat` (a Unix-seconds
|
|
39
|
+
* timestamp, `0`/absent = signed out) and, same-origin at the edge, the HttpOnly
|
|
40
|
+
* refresh cookie `__atlas_rt` (the middleware CAN read it from the request; only
|
|
41
|
+
* customer JS cannot). Either present ⇒ "probably signed in" ⇒ let the request
|
|
42
|
+
* through so the client SDK can refresh `__session` and the page re-render, INSTEAD
|
|
43
|
+
* of a false bounce. This is a routing hint, never proof of identity: a page that
|
|
44
|
+
* needs a verified user still calls `auth()`/`protect()`, which fail closed with no
|
|
45
|
+
* valid token. On real sign-out Atlas clears BOTH cookies, so the hint disappears
|
|
46
|
+
* exactly when the session does. Mirrors Clerk's `__client_uat` model.
|
|
47
|
+
*/
|
|
48
|
+
function hasSignedInHint(request) {
|
|
49
|
+
const header = request.headers.get('cookie');
|
|
50
|
+
const uat = readCookie(header, '__atlas_uat');
|
|
51
|
+
if (uat && uat !== '0' && Number(uat) > 0)
|
|
52
|
+
return true;
|
|
53
|
+
// Same-origin edge: the HttpOnly refresh cookie is present on the request.
|
|
54
|
+
return Boolean(readCookie(header, '__atlas_rt'));
|
|
55
|
+
}
|
|
27
56
|
/**
|
|
28
57
|
* Resolve the auth state for a request.
|
|
29
58
|
*
|
|
@@ -131,6 +160,18 @@ function atlasMiddleware(options) {
|
|
|
131
160
|
case 'unauthorized':
|
|
132
161
|
return response.json({ errors: [{ code: 'UNAUTHENTICATED' }] }, { status: 401 });
|
|
133
162
|
case 'redirect': {
|
|
163
|
+
/**
|
|
164
|
+
* §R3.1 FIRST, don't bounce a user who is actually signed in here but
|
|
165
|
+
* whose short-lived `__session` is momentarily absent (between the
|
|
166
|
+
* client-side refreshes). If a durable signed-in signal is present
|
|
167
|
+
* (`__atlas_uat` or the same-origin refresh cookie), let the request
|
|
168
|
+
* through: the client SDK refreshes `__session` and the page re-renders,
|
|
169
|
+
* and any page that needs a verified user still enforces via `auth()`.
|
|
170
|
+
* This is checked before the handshake and the sign-in redirect, so the
|
|
171
|
+
* common "same-property, token just expired" case never leaves the app.
|
|
172
|
+
*/
|
|
173
|
+
if (hasSignedInHint(request))
|
|
174
|
+
return response.next();
|
|
134
175
|
/**
|
|
135
176
|
* Cross-property handshake: before sending a signed-out user to the
|
|
136
177
|
* sign-in page, try the Atlas handshake ONCE — they may already have a
|
|
@@ -204,4 +245,35 @@ function createAuthHelper(options) {
|
|
|
204
245
|
};
|
|
205
246
|
};
|
|
206
247
|
}
|
|
248
|
+
/**
|
|
249
|
+
* §R3.1 Clerk-parity alias. Integrators reach for `authMiddleware` by name; it is
|
|
250
|
+
* exactly {@link atlasMiddleware}, which already reads cookies, verifies the JWT at
|
|
251
|
+
* the edge, honours the durable signed-in hint, runs the cross-property handshake,
|
|
252
|
+
* and enforces the route matcher.
|
|
253
|
+
*/
|
|
254
|
+
exports.authMiddleware = atlasMiddleware;
|
|
255
|
+
/**
|
|
256
|
+
* §R3.1 `currentUser()` — the signed-in user's profile for a server component or
|
|
257
|
+
* route handler, or `null` when signed out. Built from the verified session claims
|
|
258
|
+
* (no round-trip): with the opt-in profile claims (§R3.5) it already carries email
|
|
259
|
+
* and name, so provision-on-first-login needs no `user.updated` webhook wait.
|
|
260
|
+
*/
|
|
261
|
+
function createCurrentUserHelper(options) {
|
|
262
|
+
const auth = createAuthHelper(options);
|
|
263
|
+
return async function currentUser(request) {
|
|
264
|
+
const state = await auth(request);
|
|
265
|
+
if (!state.userId || !state.claims)
|
|
266
|
+
return null;
|
|
267
|
+
const c = state.claims;
|
|
268
|
+
return {
|
|
269
|
+
id: state.userId,
|
|
270
|
+
orgId: state.orgId,
|
|
271
|
+
orgRole: state.orgRole,
|
|
272
|
+
email: c.email ?? null,
|
|
273
|
+
name: c.name ?? null,
|
|
274
|
+
firstName: c.given_name ?? null,
|
|
275
|
+
lastName: c.family_name ?? null,
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
}
|
|
207
279
|
//# sourceMappingURL=middleware.js.map
|
package/dist/middleware.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.js","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"middleware.js","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":";;;AAgHA,0CAMC;AAUD,kCAkBC;AAED,0CA+IC;AASD,4CAsCC;AA6BD,0DAqBC;AApYD,gDAS4B;AAC5B,uCAA6E;AA4XpE,6FA5Xa,sBAAY,OA4Xb;AA1TR,QAAA,UAAU,GAAc;IACnC,MAAM,EAAE,IAAI;IACZ,SAAS,EAAE,IAAI;IACf,KAAK,EAAE,IAAI;IACX,OAAO,EAAE,IAAI;IACb,MAAM,EAAE,IAAI;CACb,CAAC;AAEF,SAAS,UAAU,CAAC,MAAqB,EAAE,IAAY;IACrD,IAAI,CAAC,MAAM;QAAE,OAAO,SAAS,CAAC;IAC9B,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;QACrC,MAAM,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC9C,IAAI,GAAG,KAAK,IAAI;YAAE,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,eAAe,CAAC,OAAoB;I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AC,GAAG,KAAK,CAAC,MAKf,CAAC;QACF,OAAO;YACL,EAAE,EAAE,KAAK,CAAC,MAAM;YAChB,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,KAAK,EAAE,CAAC,CAAC,KAAK,IAAI,IAAI;YACtB,IAAI,EAAE,CAAC,CAAC,IAAI,IAAI,IAAI;YACpB,SAAS,EAAE,CAAC,CAAC,UAAU,IAAI,IAAI;YAC/B,QAAQ,EAAE,CAAC,CAAC,WAAW,IAAI,IAAI;SAChC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlasauth/nextjs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@atlasauth/backend": "0.1.
|
|
7
|
+
"@atlasauth/backend": "0.1.2"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"typescript": "^5.6.3",
|