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.

11 lines (10 loc) 351 B
import { DecodedJWTHeader, DecodedJWTPayload } from "./types"; export type DecodeOptions = { readonly complete?: boolean; }; export type DecodedJWT = { header: DecodedJWTHeader; payload: DecodedJWTPayload; signature: string; }; export declare function decode(jwt: string, { complete }?: DecodeOptions): DecodedJWT | DecodedJWTPayload;