Skip to content

Commit 666c8ec

Browse files
authored
Update type of ParsedToken to include unknown (#6569)
* Update type of ParsedToken to include unknown * Make it unknown outright * Changeset * Switch over to any instead * Update changelog
1 parent 87c90a7 commit 666c8ec

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.changeset/spotty-pillows-applaud.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@firebase/auth": patch
3+
---
4+
5+
Update custom claim type of `ParsedToken` to be `any`

common/api-review/auth.api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ export function parseActionCodeURL(link: string): ActionCodeURL | null;
538538

539539
// @public
540540
export interface ParsedToken {
541-
[key: string]: string | object | undefined;
541+
[key: string]: any;
542542
'auth_time'?: string;
543543
'exp'?: string;
544544
'firebase'?: {

packages/auth/src/model/public_types.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* limitations under the License.
1616
*/
1717

18+
/* eslint-disable @typescript-eslint/no-explicit-any */
19+
1820
import { FirebaseApp } from '@firebase/app';
1921
import {
2022
CompleteFn,
@@ -104,7 +106,7 @@ export interface ParsedToken {
104106
'identities'?: Record<string, string>;
105107
};
106108
/** Map of any additional custom claims. */
107-
[key: string]: string | object | undefined;
109+
[key: string]: any;
108110
}
109111

110112
/**

0 commit comments

Comments
 (0)