Skip to content

Commit

Permalink
Update type of ParsedToken to include unknown (#6569)
Browse files Browse the repository at this point in the history
* Update type of ParsedToken to include unknown

* Make it unknown outright

* Changeset

* Switch over to any instead

* Update changelog
  • Loading branch information
sam-gc committed Sep 7, 2022
1 parent 87c90a7 commit 666c8ec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/spotty-pillows-applaud.md
@@ -0,0 +1,5 @@
---
"@firebase/auth": patch
---

Update custom claim type of `ParsedToken` to be `any`
2 changes: 1 addition & 1 deletion common/api-review/auth.api.md
Expand Up @@ -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'?: {
Expand Down
4 changes: 3 additions & 1 deletion packages/auth/src/model/public_types.ts
Expand Up @@ -15,6 +15,8 @@
* limitations under the License.
*/

/* eslint-disable @typescript-eslint/no-explicit-any */

import { FirebaseApp } from '@firebase/app';
import {
CompleteFn,
Expand Down Expand Up @@ -104,7 +106,7 @@ export interface ParsedToken {
'identities'?: Record<string, string>;
};
/** Map of any additional custom claims. */
[key: string]: string | object | undefined;
[key: string]: any;
}

/**
Expand Down

0 comments on commit 666c8ec

Please sign in to comment.