Skip to content

Files

Latest commit

 

History

History
57 lines (46 loc) · 1.28 KB

firebase-admin.app-check.api.md

File metadata and controls

57 lines (46 loc) · 1.28 KB

API Report File for "firebase-admin.app-check"

Do not edit this file. It is a report generated by API Extractor.

import { Agent } from 'http';

// @public
export class AppCheck {
    // Warning: (ae-forgotten-export) The symbol "App" needs to be exported by the entry point index.d.ts
    //
    // (undocumented)
    readonly app: App;
    createToken(appId: string, options?: AppCheckTokenOptions): Promise<AppCheckToken>;
    verifyToken(appCheckToken: string, options?: VerifyAppCheckTokenOptions): Promise<VerifyAppCheckTokenResponse>;
}

// @public
export interface AppCheckToken {
    token: string;
    ttlMillis: number;
}

// @public
export interface AppCheckTokenOptions {
    ttlMillis?: number;
}

// @public
export interface DecodedAppCheckToken {
    // (undocumented)
    [key: string]: any;
    app_id: string;
    aud: string[];
    exp: number;
    iat: number;
    iss: string;
    sub: string;
}

// @public
export function getAppCheck(app?: App): AppCheck;

// @public
export interface VerifyAppCheckTokenOptions {
    consume?: boolean;
}

// @public
export interface VerifyAppCheckTokenResponse {
    alreadyConsumed?: boolean;
    appId: string;
    token: DecodedAppCheckToken;
}