diff --git a/.changeset/spotty-pillows-applaud.md b/.changeset/spotty-pillows-applaud.md new file mode 100644 index 00000000000..d951adf1d5c --- /dev/null +++ b/.changeset/spotty-pillows-applaud.md @@ -0,0 +1,5 @@ +--- +"@firebase/auth": patch +--- + +Update custom claim type of `ParsedToken` to be `any` diff --git a/common/api-review/auth.api.md b/common/api-review/auth.api.md index 47fc7ec5417..045b64bcf19 100644 --- a/common/api-review/auth.api.md +++ b/common/api-review/auth.api.md @@ -538,7 +538,7 @@ export function parseActionCodeURL(link: string): ActionCodeURL | null; // @public export interface ParsedToken { - [key: string]: string | object | undefined; + [key: string]: any; 'auth_time'?: string; 'exp'?: string; 'firebase'?: { diff --git a/packages/auth/src/model/public_types.ts b/packages/auth/src/model/public_types.ts index ea6dc857962..fdef53e6850 100644 --- a/packages/auth/src/model/public_types.ts +++ b/packages/auth/src/model/public_types.ts @@ -15,6 +15,8 @@ * limitations under the License. */ +/* eslint-disable @typescript-eslint/no-explicit-any */ + import { FirebaseApp } from '@firebase/app'; import { CompleteFn, @@ -104,7 +106,7 @@ export interface ParsedToken { 'identities'?: Record; }; /** Map of any additional custom claims. */ - [key: string]: string | object | undefined; + [key: string]: any; } /**