We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23188ec commit ab3bb94Copy full SHA for ab3bb94
src/server/auth/types.ts
@@ -23,7 +23,9 @@ export interface AuthInfo {
23
expiresAt?: number;
24
25
/**
26
- * Additional arbitrary properties that may be included.
+ * Additional custom claims associated with the token.
27
+ * This field should be used for any additional data that needs to be attached to the auth info.
28
+ * Using this field instead of arbitrary keys ensures compatibility with future interface changes.
29
*/
- [key: string]: unknown;
30
+ customClaims?: Record<string, unknown>;
31
}
0 commit comments