@alpha018/nestjs-firebase-auth
Version:
NestJS Firebase library and Role based guard for authentication with some utils functions
13 lines (12 loc) • 580 B
TypeScript
import { App } from 'firebase-admin/app';
import { DecodedIdToken } from 'firebase-admin/lib/auth';
import { FirebaseConstructorInterface } from '../interface/firebase-constructor.interface';
export declare class FirebaseProvider {
private readonly data;
get auth(): import("firebase-admin/lib/auth").Auth;
get app(): App;
private readonly _app;
constructor(data: FirebaseConstructorInterface);
getClaimsRoleBase<T>(user: DecodedIdToken, localDecode: boolean): Promise<undefined | T[]>;
setClaimsRoleBase<T>(uid: string, claims: T[]): Promise<void>;
}