UNPKG

@pedwise/next-firebase-auth-edge

Version:

Next.js 13 Firebase Authentication for Edge and server runtimes. Dedicated for Next 13 server components. Compatible with Next.js middleware.

13 lines (12 loc) 521 B
import { DecodedJWTPayload, Immutable } from "./types"; export type SignOptions = { readonly payload: DecodedJWTPayload; readonly privateKey?: string; readonly secret?: string; readonly keyId?: string; readonly format?: "pkcs8"; readonly algorithm?: "RS256"; readonly extractable?: boolean; readonly keyUsages?: readonly string[]; }; export declare function sign({ payload, privateKey, secret, keyId, format, algorithm, extractable, keyUsages, }: Immutable<SignOptions>): Promise<string>;