From ab3bb94290e802753cf1217c383544cc697f0f16 Mon Sep 17 00:00:00 2001 From: Allen Zhou <46854522+allenzhou101@users.noreply.github.com> Date: Mon, 14 Apr 2025 10:10:08 -0700 Subject: [PATCH] Adjust arbitrary keys to custom claims field to prevent conflicts --- src/server/auth/types.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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