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
* adds type definitions
  • Loading branch information
ebarooni committed Nov 4, 2024
1 parent 7af2032 commit 383aef8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/authentication/src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,17 @@ export interface FirebaseAuthenticationPlugin {
eventName: 'authStateChange',
listenerFunc: AuthStateChangeListener,
): Promise<PluginListenerHandle>;
/**
* Listen for changes to the signed-in user's ID token changes.
*
* **Attention:** This listener will not be triggered automatically upon ID token expiration.
*
* @since TODO: Add since for idTokenChange
*/
addListener(
eventName: 'idTokenChange',
listenerFunc: AuthStateChangeListener,
): Promise<PluginListenerHandle>;
/**
* Listen for a completed phone verification.
*
Expand Down

0 comments on commit 383aef8

Please sign in to comment.