@@ -41,9 +41,6 @@ type ErrorType =
41
41
* @noInheritDoc
42
42
*/
43
43
export class AuthError extends Error {
44
- /** The error type. Used to identify the error in the logs.
45
- * @internal
46
- */
47
44
type : ErrorType
48
45
/**
49
46
* Determines on which page an error should be handled. Typically `signIn` errors can be handled in-page.
@@ -52,7 +49,6 @@ export class AuthError extends Error {
52
49
*/
53
50
kind ?: "signIn" | "error"
54
51
55
- /** @internal */
56
52
cause ?: Record < string , unknown > & { err ?: Error }
57
53
58
54
/** @internal */
@@ -108,7 +104,6 @@ export class SignInError extends AuthError {
108
104
* @noInheritDoc
109
105
*/
110
106
export class AdapterError extends AuthError {
111
- /** @internal */
112
107
static type = "AdapterError"
113
108
}
114
109
@@ -118,7 +113,6 @@ export class AdapterError extends AuthError {
118
113
* @noInheritDoc
119
114
*/
120
115
export class AccessDenied extends AuthError {
121
- /** @internal */
122
116
static type = "AccessDenied"
123
117
}
124
118
@@ -163,7 +157,6 @@ export class AccessDenied extends AuthError {
163
157
* @noInheritDoc
164
158
*/
165
159
export class CallbackRouteError extends AuthError {
166
- /** @internal */
167
160
static type = "CallbackRouteError"
168
161
}
169
162
@@ -177,7 +170,6 @@ export class CallbackRouteError extends AuthError {
177
170
* @noInheritDoc
178
171
*/
179
172
export class ErrorPageLoop extends AuthError {
180
- /** @internal */
181
173
static type = "ErrorPageLoop"
182
174
}
183
175
@@ -191,7 +183,6 @@ export class ErrorPageLoop extends AuthError {
191
183
* @noInheritDoc
192
184
*/
193
185
export class EventError extends AuthError {
194
- /** @internal */
195
186
static type = "EventError"
196
187
}
197
188
@@ -207,7 +198,6 @@ export class EventError extends AuthError {
207
198
* @noInheritDoc
208
199
*/
209
200
export class InvalidCallbackUrl extends AuthError {
210
- /** @internal */
211
201
static type = "InvalidCallbackUrl"
212
202
}
213
203
@@ -219,7 +209,6 @@ export class InvalidCallbackUrl extends AuthError {
219
209
* @noInheritDoc
220
210
*/
221
211
export class CredentialsSignin extends SignInError {
222
- /** @internal */
223
212
static type = "CredentialsSignin"
224
213
/**
225
214
* The error code that is set in the `code` query parameter of the redirect URL.
@@ -243,7 +232,6 @@ export class CredentialsSignin extends SignInError {
243
232
* @noInheritDoc
244
233
*/
245
234
export class InvalidEndpoints extends AuthError {
246
- /** @internal */
247
235
static type = "InvalidEndpoints"
248
236
}
249
237
@@ -255,7 +243,6 @@ export class InvalidEndpoints extends AuthError {
255
243
* @noInheritDoc
256
244
*/
257
245
export class InvalidCheck extends AuthError {
258
- /** @internal */
259
246
static type = "InvalidCheck"
260
247
}
261
248
@@ -272,7 +259,6 @@ export class InvalidCheck extends AuthError {
272
259
* @noInheritDoc
273
260
*/
274
261
export class JWTSessionError extends AuthError {
275
- /** @internal */
276
262
static type = "JWTSessionError"
277
263
}
278
264
@@ -285,7 +271,6 @@ export class JWTSessionError extends AuthError {
285
271
* @noInheritDoc
286
272
*/
287
273
export class MissingAdapter extends AuthError {
288
- /** @internal */
289
274
static type = "MissingAdapter"
290
275
}
291
276
@@ -298,7 +283,6 @@ export class MissingAdapter extends AuthError {
298
283
* @noInheritDoc
299
284
*/
300
285
export class MissingAdapterMethods extends AuthError {
301
- /** @internal */
302
286
static type = "MissingAdapterMethods"
303
287
}
304
288
@@ -310,7 +294,6 @@ export class MissingAdapterMethods extends AuthError {
310
294
* @noInheritDoc
311
295
*/
312
296
export class MissingAuthorize extends AuthError {
313
- /** @internal */
314
297
static type = "MissingAuthorize"
315
298
}
316
299
@@ -329,7 +312,6 @@ export class MissingAuthorize extends AuthError {
329
312
* @noInheritDoc
330
313
*/
331
314
export class MissingSecret extends AuthError {
332
- /** @internal */
333
315
static type = "MissingSecret"
334
316
}
335
317
@@ -347,7 +329,6 @@ export class MissingSecret extends AuthError {
347
329
* @noInheritDoc
348
330
*/
349
331
export class OAuthAccountNotLinked extends SignInError {
350
- /** @internal */
351
332
static type = "OAuthAccountNotLinked"
352
333
}
353
334
@@ -359,7 +340,6 @@ export class OAuthAccountNotLinked extends SignInError {
359
340
* @noInheritDoc
360
341
*/
361
342
export class OAuthCallbackError extends SignInError {
362
- /** @internal */
363
343
static type = "OAuthCallbackError"
364
344
}
365
345
@@ -370,7 +350,6 @@ export class OAuthCallbackError extends SignInError {
370
350
* @noInheritDoc
371
351
*/
372
352
export class OAuthProfileParseError extends AuthError {
373
- /** @internal */
374
353
static type = "OAuthProfileParseError"
375
354
}
376
355
@@ -383,7 +362,6 @@ export class OAuthProfileParseError extends AuthError {
383
362
* @noInheritDoc
384
363
*/
385
364
export class SessionTokenError extends AuthError {
386
- /** @internal */
387
365
static type = "SessionTokenError"
388
366
}
389
367
@@ -404,7 +382,6 @@ export class SessionTokenError extends AuthError {
404
382
* @noInheritDoc
405
383
*/
406
384
export class OAuthSignInError extends SignInError {
407
- /** @internal */
408
385
static type = "OAuthSignInError"
409
386
}
410
387
@@ -420,7 +397,6 @@ export class OAuthSignInError extends SignInError {
420
397
* @noInheritDoc
421
398
*/
422
399
export class EmailSignInError extends SignInError {
423
- /** @internal */
424
400
static type = "EmailSignInError"
425
401
}
426
402
@@ -435,7 +411,6 @@ export class EmailSignInError extends SignInError {
435
411
* @noInheritDoc
436
412
*/
437
413
export class SignOutError extends AuthError {
438
- /** @internal */
439
414
static type = "SignOutError"
440
415
}
441
416
@@ -446,7 +421,6 @@ export class SignOutError extends AuthError {
446
421
* @noInheritDoc
447
422
*/
448
423
export class UnknownAction extends AuthError {
449
- /** @internal */
450
424
static type = "UnknownAction"
451
425
}
452
426
@@ -457,7 +431,6 @@ export class UnknownAction extends AuthError {
457
431
* @noInheritDoc
458
432
*/
459
433
export class UnsupportedStrategy extends AuthError {
460
- /** @internal */
461
434
static type = "UnsupportedStrategy"
462
435
}
463
436
@@ -466,7 +439,6 @@ export class UnsupportedStrategy extends AuthError {
466
439
* @noInheritDoc
467
440
*/
468
441
export class InvalidProvider extends AuthError {
469
- /** @internal */
470
442
static type = "InvalidProvider"
471
443
}
472
444
@@ -483,7 +455,6 @@ export class InvalidProvider extends AuthError {
483
455
* @noInheritDoc
484
456
*/
485
457
export class UntrustedHost extends AuthError {
486
- /** @internal */
487
458
static type = "UntrustedHost"
488
459
}
489
460
@@ -494,7 +465,6 @@ export class UntrustedHost extends AuthError {
494
465
* @noInheritDoc
495
466
*/
496
467
export class Verification extends AuthError {
497
- /** @internal */
498
468
static type = "Verification"
499
469
}
500
470
@@ -510,7 +480,6 @@ export class Verification extends AuthError {
510
480
* @noInheritDoc
511
481
*/
512
482
export class MissingCSRF extends SignInError {
513
- /** @internal */
514
483
static type = "MissingCSRF"
515
484
}
516
485
@@ -541,7 +510,6 @@ export function isClientError(error: Error): error is AuthError {
541
510
* @noInheritDoc
542
511
*/
543
512
export class DuplicateConditionalUI extends AuthError {
544
- /** @internal */
545
513
static type = "DuplicateConditionalUI"
546
514
}
547
515
@@ -552,7 +520,6 @@ export class DuplicateConditionalUI extends AuthError {
552
520
* @noInheritDoc
553
521
*/
554
522
export class MissingWebAuthnAutocomplete extends AuthError {
555
- /** @internal */
556
523
static type = "MissingWebAuthnAutocomplete"
557
524
}
558
525
@@ -561,7 +528,6 @@ export class MissingWebAuthnAutocomplete extends AuthError {
561
528
* @noInheritDoc
562
529
*/
563
530
export class WebAuthnVerificationError extends AuthError {
564
- /** @internal */
565
531
static type = "WebAuthnVerificationError"
566
532
}
567
533
@@ -573,7 +539,6 @@ export class WebAuthnVerificationError extends AuthError {
573
539
* @noInheritDoc
574
540
*/
575
541
export class AccountNotLinked extends SignInError {
576
- /** @internal */
577
542
static type = "AccountNotLinked"
578
543
}
579
544
@@ -582,6 +547,5 @@ export class AccountNotLinked extends SignInError {
582
547
* @noInheritDoc
583
548
*/
584
549
export class ExperimentalFeatureNotEnabled extends AuthError {
585
- /** @internal */
586
550
static type = "ExperimentalFeatureNotEnabled"
587
551
}
0 commit comments