UNPKG

@alpha018/nestjs-firebase-auth

Version:

NestJS Firebase library and Role based guard for authentication with some utils functions

13 lines (12 loc) 576 B
import { App } from 'firebase-admin/app'; import { FirebaseConstructorInterface } from '../interface/firebase-constructor.interface'; import { DecodedIdToken } from 'firebase-admin/lib/auth'; export declare class FirebaseProvider { private readonly data; private readonly _app; constructor(data: FirebaseConstructorInterface); get app(): App; get auth(): import("firebase-admin/auth").Auth; setClaimsRoleBase<T>(uid: string, claims: T[]): Promise<void>; getClaimsRoleBase<T>(user: DecodedIdToken, localDecode: boolean): Promise<T[] | undefined>; }