Skip to content

Commit

Permalink
feat: extend authentication to support id token change event (#710)
Browse files Browse the repository at this point in the history
* removes IdTokenChange interface
  • Loading branch information
ebarooni committed Nov 6, 2024
1 parent c3915d5 commit c22b878
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions packages/authentication/src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,7 @@ export type AuthStateChangeListener = (change: AuthStateChange) => void;
*
* @since TODO: Add since for IdTokenChangeListener
*/
export type IdTokenChangeListener = (change: IdTokenChange) => void;
export type IdTokenChangeListener = (change: GetIdTokenResult) => void;

/**
* @since 0.1.0
Expand All @@ -1439,15 +1439,6 @@ export interface AuthStateChange {
user: User | null;
}

export interface IdTokenChange {
/**
* A JSON Web Token (JWT) used to identify the user to a Firebase service.
*
* @since TODO: Add since for IdTokenChange
*/
token: string | null;
}

/**
* Callback to receive the verification code sent to the user's phone number.
*
Expand Down

0 comments on commit c22b878

Please sign in to comment.