@bymax-one/nest-auth 1.4.2 → 1.4.4

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.
@@ -19,8 +19,12 @@ var AUTH_ERROR_CODES = {
19
19
  ACCOUNT_BANNED: "auth.account_banned",
20
20
  PENDING_APPROVAL: "auth.pending_approval",
21
21
  // Tokens and sessions
22
+ /** Internal-only: expiry. Never on the wire — collapsed onto TOKEN_INVALID, to deny an oracle
23
+ * separating a token that WAS valid from one that never was. */
22
24
  TOKEN_EXPIRED: "auth.token_expired",
25
+ /** Internal-only: logout or epoch bump. Never on the wire — see TOKEN_EXPIRED. */
23
26
  TOKEN_REVOKED: "auth.token_revoked",
27
+ /** What a client receives for EVERY unusable credential: expired, revoked, malformed, absent. */
24
28
  TOKEN_INVALID: "auth.token_invalid",
25
29
  /** Internal-only: the request carried no credential. Never on the wire — see TOKEN_INVALID. */
26
30
  TOKEN_MISSING: "auth.token_missing",
@@ -87,6 +91,46 @@ var AUTH_ERROR_CODES = {
87
91
  */
88
92
  INTERNAL: "auth.internal"
89
93
  };
94
+ var AUTH_ERROR_STATUS = {
95
+ "auth.invalid_credentials": 401,
96
+ "auth.account_locked": 429,
97
+ "auth.account_inactive": 403,
98
+ "auth.account_suspended": 403,
99
+ "auth.account_banned": 403,
100
+ "auth.pending_approval": 403,
101
+ "auth.token_expired": 401,
102
+ "auth.token_revoked": 401,
103
+ "auth.token_invalid": 401,
104
+ "auth.token_missing": 401,
105
+ "auth.refresh_token_invalid": 401,
106
+ "auth.session_not_found": 404,
107
+ "auth.email_already_exists": 409,
108
+ "auth.email_not_verified": 403,
109
+ "auth.email_change_token_invalid": 400,
110
+ "auth.mfa_required": 403,
111
+ "auth.mfa_invalid_code": 401,
112
+ "auth.mfa_already_enabled": 409,
113
+ "auth.mfa_not_enabled": 400,
114
+ "auth.mfa_setup_required": 400,
115
+ "auth.mfa_temp_token_invalid": 401,
116
+ "auth.mfa_state_conflict": 409,
117
+ "auth.password_compromised": 400,
118
+ "auth.password_reset_token_invalid": 400,
119
+ "auth.otp_invalid": 401,
120
+ "auth.otp_expired": 401,
121
+ "auth.otp_max_attempts": 401,
122
+ "auth.insufficient_role": 403,
123
+ "auth.forbidden": 403,
124
+ "auth.validation": 400,
125
+ "auth.too_many_requests": 429,
126
+ "auth.untrusted_origin": 403,
127
+ "auth.reauthentication_required": 403,
128
+ "auth.invalid_invitation_token": 400,
129
+ "auth.oauth_failed": 401,
130
+ "auth.oauth_email_mismatch": 409,
131
+ "auth.platform_auth_required": 401,
132
+ "auth.internal": 500
133
+ };
90
134
 
91
135
  // src/shared/constants/routes.ts
92
136
  var AUTH_DASHBOARD_ROUTES = {
@@ -100,6 +144,8 @@ var AUTH_DASHBOARD_ROUTES = {
100
144
  refresh: "refresh",
101
145
  /** GET — return the currently authenticated user. */
102
146
  me: "me",
147
+ /** POST — mint a single-use ticket for a WebSocket upgrade. */
148
+ wsTicket: "ws-ticket",
103
149
  /** POST — submit the email-verification token returned by the verification email. */
104
150
  verifyEmail: "verify-email",
105
151
  /** POST — request a fresh email-verification token. */
@@ -113,13 +159,22 @@ var AUTH_MFA_ROUTES = {
113
159
  /** POST — exchange an MFA temp token + OTP for a full access token. */
114
160
  challenge: "mfa/challenge",
115
161
  /** POST — disable MFA after re-authenticating with a fresh OTP. */
116
- disable: "mfa/disable"
162
+ disable: "mfa/disable",
163
+ /** POST — replace the recovery codes, re-authenticating with a fresh OTP. */
164
+ recoveryCodes: "mfa/recovery-codes"
117
165
  };
118
166
  var AUTH_PASSWORD_ROUTES = {
119
167
  /** POST — request a password reset (email lookup is anti-enumeration). */
120
168
  forgotPassword: "password/forgot-password",
121
169
  /** POST — submit a new password using the reset token. */
122
170
  resetPassword: "password/reset-password",
171
+ /**
172
+ * POST — change the password of the signed-in user, verifying the current one.
173
+ *
174
+ * The only route in this family behind the JWT guard: the rest are reached by a
175
+ * caller who has no session, which is what a reset is for.
176
+ */
177
+ changePassword: "password/change",
123
178
  /** POST — verify the reset OTP (when `passwordReset.method = 'otp'`). */
124
179
  verifyOtp: "password/verify-otp",
125
180
  /** POST — request a fresh OTP after the previous one expired. */
@@ -139,11 +194,29 @@ var AUTH_PLATFORM_ROUTES = {
139
194
  /** DELETE — revoke every active session for the current platform admin. */
140
195
  revokeAllSessions: "platform/sessions"
141
196
  };
197
+ var AUTH_PLATFORM_MFA_ROUTES = {
198
+ /** POST — begin TOTP enrollment for a platform administrator. */
199
+ setup: "platform/mfa/setup",
200
+ /** POST — confirm enrollment by submitting the first valid code. */
201
+ verifyEnable: "platform/mfa/verify-enable",
202
+ /** POST — disable MFA after re-authenticating with a fresh OTP. */
203
+ disable: "platform/mfa/disable",
204
+ /** POST — replace the recovery codes, re-authenticating with a fresh OTP. */
205
+ recoveryCodes: "platform/mfa/recovery-codes"
206
+ };
142
207
  var AUTH_SESSION_ROUTES = {
143
208
  /** GET — list every active session for the current user. */
144
209
  list: "sessions",
145
- /** DELETE — revoke every session belonging to the current user. */
146
- revokeAll: "sessions/all",
210
+ /**
211
+ * POST — revoke every session belonging to the current user except the one
212
+ * making the call.
213
+ *
214
+ * POST rather than DELETE because the refresh token that names the current
215
+ * session travels in the body under `tokenDelivery: 'bearer'`, and OpenAPI 3.0.3
216
+ * defers to RFC 7231: a payload on DELETE has no defined semantics, so a
217
+ * generated client drops it.
218
+ */
219
+ revokeAll: "sessions/revoke-all",
147
220
  /**
148
221
  * DELETE — revoke a single session by id. The `:id` placeholder must be
149
222
  * substituted with the session identifier before the request is issued.
@@ -164,14 +237,22 @@ var AUTH_INVITATION_ROUTES = {
164
237
  /** POST — withdraw a pending invitation before it is accepted (admin-only). */
165
238
  revoke: "invitations/revoke"
166
239
  };
240
+ var AUTH_OAUTH_ROUTES = {
241
+ /** GET — redirect the browser to the provider's consent screen. */
242
+ initiate: "oauth/:provider",
243
+ /** GET — the provider redirects back here with the authorization code. */
244
+ callback: "oauth/:provider/callback"
245
+ };
167
246
  var AUTH_ROUTES = {
168
247
  dashboard: AUTH_DASHBOARD_ROUTES,
169
248
  mfa: AUTH_MFA_ROUTES,
170
249
  password: AUTH_PASSWORD_ROUTES,
171
250
  platform: AUTH_PLATFORM_ROUTES,
251
+ platformMfa: AUTH_PLATFORM_MFA_ROUTES,
172
252
  sessions: AUTH_SESSION_ROUTES,
173
253
  invitations: AUTH_INVITATION_ROUTES,
174
- emailChange: AUTH_EMAIL_CHANGE_ROUTES
254
+ emailChange: AUTH_EMAIL_CHANGE_ROUTES,
255
+ oauth: AUTH_OAUTH_ROUTES
175
256
  };
176
257
  var AUTH_PROXY_ROUTES = {
177
258
  /** POST — same-domain refresh entry point (server-to-server). */
@@ -194,22 +275,30 @@ var AUTH_REFRESH_SKIP_CONTROLLER_PATHS = [
194
275
  "password/reset-password",
195
276
  "password/verify-otp",
196
277
  "password/resend-otp",
197
- // MFA endpoints
198
- "mfa/setup",
199
- "mfa/verify-enable",
278
+ // The MFA challenge issues the session — there is none to refresh. Its siblings
279
+ // (`mfa/setup`, `mfa/verify-enable`, `mfa/disable`) are NOT here: they are JWT-guarded, so a
280
+ // 401 there can be a genuine expiry, and their credential failures are recognised by code.
200
281
  "mfa/challenge",
201
- "mfa/disable",
202
282
  // Invitation acceptance issues tokens
203
283
  "invitations/accept",
204
284
  // The address-change confirmation is public: the holder is proving control of a mailbox,
205
285
  // not of a session.
206
286
  "email/change/confirm",
207
- // Platform endpoints
287
+ // The platform surface, ALL of it. Every protected route here is JWT-PLATFORM-guarded, so an
288
+ // expired platform token answers `auth.token_invalid` — the code the client reads as "expired"
289
+ // — and a dashboard refresh cannot fix another plane's credential. Listing only some of them
290
+ // left the rest launching a refresh that spends the budget and can call `onSessionExpired` for
291
+ // a dashboard session that is perfectly healthy.
208
292
  "platform/login",
209
293
  "platform/refresh",
210
294
  "platform/logout",
295
+ "platform/me",
296
+ "platform/sessions",
211
297
  "platform/mfa/challenge",
212
- "platform/sessions"
298
+ "platform/mfa/setup",
299
+ "platform/mfa/verify-enable",
300
+ "platform/mfa/disable",
301
+ "platform/mfa/recovery-codes"
213
302
  ];
214
303
  var AUTH_REFRESH_SKIP_PROXY_PATHS = [
215
304
  "/api/auth/client-refresh",
@@ -275,11 +364,15 @@ var AuthClientError = class extends Error {
275
364
 
276
365
  exports.AUTH_ACCESS_COOKIE_NAME = AUTH_ACCESS_COOKIE_NAME;
277
366
  exports.AUTH_DASHBOARD_ROUTES = AUTH_DASHBOARD_ROUTES;
367
+ exports.AUTH_EMAIL_CHANGE_ROUTES = AUTH_EMAIL_CHANGE_ROUTES;
278
368
  exports.AUTH_ERROR_CODES = AUTH_ERROR_CODES;
369
+ exports.AUTH_ERROR_STATUS = AUTH_ERROR_STATUS;
279
370
  exports.AUTH_HAS_SESSION_COOKIE_NAME = AUTH_HAS_SESSION_COOKIE_NAME;
280
371
  exports.AUTH_INVITATION_ROUTES = AUTH_INVITATION_ROUTES;
281
372
  exports.AUTH_MFA_ROUTES = AUTH_MFA_ROUTES;
373
+ exports.AUTH_OAUTH_ROUTES = AUTH_OAUTH_ROUTES;
282
374
  exports.AUTH_PASSWORD_ROUTES = AUTH_PASSWORD_ROUTES;
375
+ exports.AUTH_PLATFORM_MFA_ROUTES = AUTH_PLATFORM_MFA_ROUTES;
283
376
  exports.AUTH_PLATFORM_ROUTES = AUTH_PLATFORM_ROUTES;
284
377
  exports.AUTH_PROXY_ROUTES = AUTH_PROXY_ROUTES;
285
378
  exports.AUTH_REFRESH_COOKIE_NAME = AUTH_REFRESH_COOKIE_NAME;
@@ -75,8 +75,12 @@ declare const AUTH_ERROR_CODES: {
75
75
  readonly ACCOUNT_SUSPENDED: "auth.account_suspended";
76
76
  readonly ACCOUNT_BANNED: "auth.account_banned";
77
77
  readonly PENDING_APPROVAL: "auth.pending_approval";
78
+ /** Internal-only: expiry. Never on the wire — collapsed onto TOKEN_INVALID, to deny an oracle
79
+ * separating a token that WAS valid from one that never was. */
78
80
  readonly TOKEN_EXPIRED: "auth.token_expired";
81
+ /** Internal-only: logout or epoch bump. Never on the wire — see TOKEN_EXPIRED. */
79
82
  readonly TOKEN_REVOKED: "auth.token_revoked";
83
+ /** What a client receives for EVERY unusable credential: expired, revoked, malformed, absent. */
80
84
  readonly TOKEN_INVALID: "auth.token_invalid";
81
85
  /** Internal-only: the request carried no credential. Never on the wire — see TOKEN_INVALID. */
82
86
  readonly TOKEN_MISSING: "auth.token_missing";
@@ -143,6 +147,22 @@ declare const AUTH_ERROR_CODES: {
143
147
  * compile time.
144
148
  */
145
149
  type AuthErrorCode = (typeof AUTH_ERROR_CODES)[keyof typeof AUTH_ERROR_CODES];
150
+ /**
151
+ * HTTP status each error code answers with, mirrored from the server declaration.
152
+ *
153
+ * Duplicated rather than imported for the same reason {@link AUTH_ERROR_CODES} is: this subpath
154
+ * must compile in a browser, and the server entry carries the NestJS peer dependencies. The
155
+ * drift-guard spec beside this file is the only place the two declarations meet.
156
+ *
157
+ * It lives here because the three uses the README invites — a typed client, an API document, a
158
+ * test asserting against the mapping — are exactly the ones that must not pull the server entry.
159
+ * It shipped only from there, next to a paragraph correctly saying `AUTH_ERROR_CODES` comes from
160
+ * `/shared`, so the adjacency invited the assumption that this did too.
161
+ *
162
+ * These are WIRE statuses: an internal-only code carries the status of the public code it
163
+ * collapses onto, not one of its own.
164
+ */
165
+ declare const AUTH_ERROR_STATUS: Readonly<Record<AuthErrorCode, number>>;
146
166
 
147
167
  /**
148
168
  * HTTP route paths exposed by the @bymax-one/nest-auth server controllers.
@@ -175,6 +195,8 @@ declare const AUTH_DASHBOARD_ROUTES: {
175
195
  readonly refresh: "refresh";
176
196
  /** GET — return the currently authenticated user. */
177
197
  readonly me: "me";
198
+ /** POST — mint a single-use ticket for a WebSocket upgrade. */
199
+ readonly wsTicket: "ws-ticket";
178
200
  /** POST — submit the email-verification token returned by the verification email. */
179
201
  readonly verifyEmail: "verify-email";
180
202
  /** POST — request a fresh email-verification token. */
@@ -194,6 +216,8 @@ declare const AUTH_MFA_ROUTES: {
194
216
  readonly challenge: "mfa/challenge";
195
217
  /** POST — disable MFA after re-authenticating with a fresh OTP. */
196
218
  readonly disable: "mfa/disable";
219
+ /** POST — replace the recovery codes, re-authenticating with a fresh OTP. */
220
+ readonly recoveryCodes: "mfa/recovery-codes";
197
221
  };
198
222
  /**
199
223
  * Password reset routes.
@@ -206,6 +230,13 @@ declare const AUTH_PASSWORD_ROUTES: {
206
230
  readonly forgotPassword: "password/forgot-password";
207
231
  /** POST — submit a new password using the reset token. */
208
232
  readonly resetPassword: "password/reset-password";
233
+ /**
234
+ * POST — change the password of the signed-in user, verifying the current one.
235
+ *
236
+ * The only route in this family behind the JWT guard: the rest are reached by a
237
+ * caller who has no session, which is what a reset is for.
238
+ */
239
+ readonly changePassword: "password/change";
209
240
  /** POST — verify the reset OTP (when `passwordReset.method = 'otp'`). */
210
241
  readonly verifyOtp: "password/verify-otp";
211
242
  /** POST — request a fresh OTP after the previous one expired. */
@@ -231,6 +262,31 @@ declare const AUTH_PLATFORM_ROUTES: {
231
262
  /** DELETE — revoke every active session for the current platform admin. */
232
263
  readonly revokeAllSessions: "platform/sessions";
233
264
  };
265
+ /**
266
+ * Platform administrator MFA routes (`controllers.platform: true`).
267
+ *
268
+ * Mounted under `platform/mfa/`
269
+ * (`src/server/controllers/platform-mfa.controller.ts`). A separate family because the
270
+ * controller is separate, NOT because the switch is: `controllers.platform: true` mounts
271
+ * `PlatformAuthController` and `PlatformMfaController` together, and there is no
272
+ * `controllers.platformMfa` option to turn one on without the other. The platform plane requires
273
+ * MFA of its administrators, so a deployment that could mount the login surface without the
274
+ * enrollment surface would be one where an operator can be required to present a second factor
275
+ * they have no endpoint to set up.
276
+ *
277
+ * The challenge is NOT here — it belongs to the login flow on `PlatformAuthController`, which is
278
+ * why it sits with the routes that issue credentials rather than with the ones that manage them.
279
+ */
280
+ declare const AUTH_PLATFORM_MFA_ROUTES: {
281
+ /** POST — begin TOTP enrollment for a platform administrator. */
282
+ readonly setup: "platform/mfa/setup";
283
+ /** POST — confirm enrollment by submitting the first valid code. */
284
+ readonly verifyEnable: "platform/mfa/verify-enable";
285
+ /** POST — disable MFA after re-authenticating with a fresh OTP. */
286
+ readonly disable: "platform/mfa/disable";
287
+ /** POST — replace the recovery codes, re-authenticating with a fresh OTP. */
288
+ readonly recoveryCodes: "platform/mfa/recovery-codes";
289
+ };
234
290
  /**
235
291
  * Session management routes (`controllers.sessions: true`).
236
292
  *
@@ -240,14 +296,33 @@ declare const AUTH_PLATFORM_ROUTES: {
240
296
  declare const AUTH_SESSION_ROUTES: {
241
297
  /** GET — list every active session for the current user. */
242
298
  readonly list: "sessions";
243
- /** DELETE — revoke every session belonging to the current user. */
244
- readonly revokeAll: "sessions/all";
299
+ /**
300
+ * POST — revoke every session belonging to the current user except the one
301
+ * making the call.
302
+ *
303
+ * POST rather than DELETE because the refresh token that names the current
304
+ * session travels in the body under `tokenDelivery: 'bearer'`, and OpenAPI 3.0.3
305
+ * defers to RFC 7231: a payload on DELETE has no defined semantics, so a
306
+ * generated client drops it.
307
+ */
308
+ readonly revokeAll: "sessions/revoke-all";
245
309
  /**
246
310
  * DELETE — revoke a single session by id. The `:id` placeholder must be
247
311
  * substituted with the session identifier before the request is issued.
248
312
  */
249
313
  readonly revokeOne: "sessions/:id";
250
314
  };
315
+ /**
316
+ * Address-change routes (`controllers.emailChange: true`).
317
+ *
318
+ * Mounted under `email/` (`src/server/controllers/email-change.controller.ts`).
319
+ */
320
+ declare const AUTH_EMAIL_CHANGE_ROUTES: {
321
+ /** POST — request a change; mails a token to the new address. */
322
+ readonly request: "email/change";
323
+ /** POST — confirm the change with that token. */
324
+ readonly confirm: "email/change/confirm";
325
+ };
251
326
  /**
252
327
  * Invitation routes (`controllers.invitations: true`).
253
328
  *
@@ -262,6 +337,19 @@ declare const AUTH_INVITATION_ROUTES: {
262
337
  /** POST — withdraw a pending invitation before it is accepted (admin-only). */
263
338
  readonly revoke: "invitations/revoke";
264
339
  };
340
+ /**
341
+ * OAuth routes (`oauth.google` configured).
342
+ *
343
+ * Mounted under `oauth/` (`src/server/oauth/oauth.controller.ts`). Both carry a
344
+ * `:provider` segment that must be substituted before the request is issued —
345
+ * `'google'` is the only provider this library implements today.
346
+ */
347
+ declare const AUTH_OAUTH_ROUTES: {
348
+ /** GET — redirect the browser to the provider's consent screen. */
349
+ readonly initiate: "oauth/:provider";
350
+ /** GET — the provider redirects back here with the authorization code. */
351
+ readonly callback: "oauth/:provider/callback";
352
+ };
265
353
  /**
266
354
  * Aggregated route map grouped by domain.
267
355
  *
@@ -280,6 +368,8 @@ declare const AUTH_ROUTES: {
280
368
  readonly refresh: "refresh";
281
369
  /** GET — return the currently authenticated user. */
282
370
  readonly me: "me";
371
+ /** POST — mint a single-use ticket for a WebSocket upgrade. */
372
+ readonly wsTicket: "ws-ticket";
283
373
  /** POST — submit the email-verification token returned by the verification email. */
284
374
  readonly verifyEmail: "verify-email";
285
375
  /** POST — request a fresh email-verification token. */
@@ -294,12 +384,21 @@ declare const AUTH_ROUTES: {
294
384
  readonly challenge: "mfa/challenge";
295
385
  /** POST — disable MFA after re-authenticating with a fresh OTP. */
296
386
  readonly disable: "mfa/disable";
387
+ /** POST — replace the recovery codes, re-authenticating with a fresh OTP. */
388
+ readonly recoveryCodes: "mfa/recovery-codes";
297
389
  };
298
390
  readonly password: {
299
391
  /** POST — request a password reset (email lookup is anti-enumeration). */
300
392
  readonly forgotPassword: "password/forgot-password";
301
393
  /** POST — submit a new password using the reset token. */
302
394
  readonly resetPassword: "password/reset-password";
395
+ /**
396
+ * POST — change the password of the signed-in user, verifying the current one.
397
+ *
398
+ * The only route in this family behind the JWT guard: the rest are reached by a
399
+ * caller who has no session, which is what a reset is for.
400
+ */
401
+ readonly changePassword: "password/change";
303
402
  /** POST — verify the reset OTP (when `passwordReset.method = 'otp'`). */
304
403
  readonly verifyOtp: "password/verify-otp";
305
404
  /** POST — request a fresh OTP after the previous one expired. */
@@ -319,11 +418,29 @@ declare const AUTH_ROUTES: {
319
418
  /** DELETE — revoke every active session for the current platform admin. */
320
419
  readonly revokeAllSessions: "platform/sessions";
321
420
  };
421
+ readonly platformMfa: {
422
+ /** POST — begin TOTP enrollment for a platform administrator. */
423
+ readonly setup: "platform/mfa/setup";
424
+ /** POST — confirm enrollment by submitting the first valid code. */
425
+ readonly verifyEnable: "platform/mfa/verify-enable";
426
+ /** POST — disable MFA after re-authenticating with a fresh OTP. */
427
+ readonly disable: "platform/mfa/disable";
428
+ /** POST — replace the recovery codes, re-authenticating with a fresh OTP. */
429
+ readonly recoveryCodes: "platform/mfa/recovery-codes";
430
+ };
322
431
  readonly sessions: {
323
432
  /** GET — list every active session for the current user. */
324
433
  readonly list: "sessions";
325
- /** DELETE — revoke every session belonging to the current user. */
326
- readonly revokeAll: "sessions/all";
434
+ /**
435
+ * POST — revoke every session belonging to the current user except the one
436
+ * making the call.
437
+ *
438
+ * POST rather than DELETE because the refresh token that names the current
439
+ * session travels in the body under `tokenDelivery: 'bearer'`, and OpenAPI 3.0.3
440
+ * defers to RFC 7231: a payload on DELETE has no defined semantics, so a
441
+ * generated client drops it.
442
+ */
443
+ readonly revokeAll: "sessions/revoke-all";
327
444
  /**
328
445
  * DELETE — revoke a single session by id. The `:id` placeholder must be
329
446
  * substituted with the session identifier before the request is issued.
@@ -344,6 +461,12 @@ declare const AUTH_ROUTES: {
344
461
  /** POST — confirm the change with that token. */
345
462
  readonly confirm: "email/change/confirm";
346
463
  };
464
+ readonly oauth: {
465
+ /** GET — redirect the browser to the provider's consent screen. */
466
+ readonly initiate: "oauth/:provider";
467
+ /** GET — the provider redirects back here with the authorization code. */
468
+ readonly callback: "oauth/:provider/callback";
469
+ };
347
470
  };
348
471
  /**
349
472
  * Default Next.js proxy endpoints used by `createAuthClient` and the
@@ -849,4 +972,4 @@ type AuthContextKind = 'dashboard' | 'platform';
849
972
  */
850
973
  type TokenDeliveryMode = 'cookie' | 'bearer';
851
974
 
852
- export { AUTH_ACCESS_COOKIE_NAME, AUTH_DASHBOARD_ROUTES, AUTH_ERROR_CODES, AUTH_HAS_SESSION_COOKIE_NAME, AUTH_INVITATION_ROUTES, AUTH_MFA_ROUTES, AUTH_PASSWORD_ROUTES, AUTH_PLATFORM_ROUTES, AUTH_PROXY_ROUTES, AUTH_REFRESH_COOKIE_NAME, AUTH_REFRESH_COOKIE_PATH, AUTH_REFRESH_SKIP_PATH_SUFFIXES, AUTH_ROUTES, AUTH_SESSION_ROUTES, AuthClientError, type AuthContextKind, type AuthCookieNames, type AuthErrorCode, type AuthErrorResponse, type AuthJwtPayload, type AuthPlatformUserClient, type AuthResponseCode, type AuthResult, type AuthUserClient, type DashboardJwtPayload, type LoginResult, type MfaChallengeResult, type MfaTempPayload, type PlatformAuthResult, type PlatformJwtPayload, type PlatformLoginResult, type TokenDeliveryMode, buildAuthRefreshSkipSuffixes };
975
+ export { AUTH_ACCESS_COOKIE_NAME, AUTH_DASHBOARD_ROUTES, AUTH_EMAIL_CHANGE_ROUTES, AUTH_ERROR_CODES, AUTH_ERROR_STATUS, AUTH_HAS_SESSION_COOKIE_NAME, AUTH_INVITATION_ROUTES, AUTH_MFA_ROUTES, AUTH_OAUTH_ROUTES, AUTH_PASSWORD_ROUTES, AUTH_PLATFORM_MFA_ROUTES, AUTH_PLATFORM_ROUTES, AUTH_PROXY_ROUTES, AUTH_REFRESH_COOKIE_NAME, AUTH_REFRESH_COOKIE_PATH, AUTH_REFRESH_SKIP_PATH_SUFFIXES, AUTH_ROUTES, AUTH_SESSION_ROUTES, AuthClientError, type AuthContextKind, type AuthCookieNames, type AuthErrorCode, type AuthErrorResponse, type AuthJwtPayload, type AuthPlatformUserClient, type AuthResponseCode, type AuthResult, type AuthUserClient, type DashboardJwtPayload, type LoginResult, type MfaChallengeResult, type MfaTempPayload, type PlatformAuthResult, type PlatformJwtPayload, type PlatformLoginResult, type TokenDeliveryMode, buildAuthRefreshSkipSuffixes };