diff --git a/src/server/auth/types.ts b/src/server/auth/types.ts index cd1430f1..5e6bc562 100644 --- a/src/server/auth/types.ts +++ b/src/server/auth/types.ts @@ -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; } \ No newline at end of file