Adjust arbitrary keys to custom claims field to prevent conflicts

This commit is contained in:
Allen Zhou 2025-04-14 10:10:08 -07:00
commit ab3bb94290
No known key found for this signature in database
GPG key ID: 5817C145DE5C5556

View file

@ -23,7 +23,9 @@ export interface AuthInfo {
expiresAt?: number;
/**
* Additional arbitrary properties that may be included.
* Additional custom claims associated with the token.
* This field should be used for any additional data that needs to be attached to the auth info.
* Using this field instead of arbitrary keys ensures compatibility with future interface changes.
*/
[key: string]: unknown;
customClaims?: Record<string, unknown>;
}