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.

15 lines (14 loc) 496 B
export declare class JwtError extends Error { readonly code: JwtErrorCode; readonly message: string; constructor(code: JwtErrorCode, message: string); } export declare enum JwtErrorCode { INVALID_ARGUMENT = "invalid-argument", INVALID_CREDENTIAL = "invalid-credential", TOKEN_EXPIRED = "token-expired", INVALID_SIGNATURE = "invalid-token", NO_MATCHING_KID = "no-matching-kid-error", NO_KID_IN_HEADER = "no-kid-error", KEY_FETCH_ERROR = "key-fetch-error" }