Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add AuthBlockingEventType type
  • Loading branch information
pragatimodi committed Nov 14, 2023
commit 4ed2e1a7453bec5402370d66e6b219048c936994
5 changes: 3 additions & 2 deletions etc/firebase-admin.auth.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ export class Auth extends BaseAuth {
tenantManager(): TenantManager;
}

// @public
export type AuthBlockingEventType = 'beforeCreate' | 'beforeSignIn' | 'beforeSendEmail' | 'beforeSendSms';

// @public
export type AuthFactorType = 'phone';

Expand Down Expand Up @@ -94,8 +97,6 @@ export abstract class BaseAuth {
setCustomUserClaims(uid: string, customUserClaims: object | null): Promise<void>;
updateProviderConfig(providerId: string, updatedConfig: UpdateAuthProviderRequest): Promise<AuthProviderConfig>;
updateUser(uid: string, properties: UpdateRequest): Promise<UserRecord>;
// Warning: (ae-forgotten-export) The symbol "AuthBlockingEventType" needs to be exported by the entry point index.d.ts
//
// @alpha (undocumented)
_verifyAuthBlockingToken(token: string, audience?: string, eventType?: AuthBlockingEventType): Promise<DecodedAuthBlockingToken>;
verifyIdToken(idToken: string, checkRevoked?: boolean): Promise<DecodedIdToken>;
Expand Down
3 changes: 2 additions & 1 deletion src/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ export {

export {
DecodedIdToken,
DecodedAuthBlockingToken
DecodedAuthBlockingToken,
AuthBlockingEventType
} from './token-verifier';

export {
Expand Down