Adjust arbitrary keys to custom claims field to prevent conflicts
This commit is contained in:
parent
23188ec446
commit
ab3bb94290
1 changed files with 4 additions and 2 deletions
|
|
@ -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>;
|
||||
}
|
||||
Loading…
Reference in a new issue