UNPKG

next-bungie-auth

Version:

Next Bungie Auth is an open source Next.js library that provides a configurable solution for authenticating your users with Bungie.net

11 lines (10 loc) 529 B
import type { BungieTokenResponse, NextBungieAuthConfig } from "../types"; /** @internal */ export declare const getTokens: ({ grantType, value, }: { grantType: "authorization_code" | "refresh_token"; value: string; }, config: NextBungieAuthConfig) => Promise<BungieTokenResponse>; /** @internal */ export declare const encodeToken: (data: string, config: NextBungieAuthConfig) => string; /** @internal */ export declare const decodeToken: (encodedStr: string | undefined, config: NextBungieAuthConfig) => string | null;