@wristband/nextjs-auth
Version:
SDK for integrating your Next.js application with Wristband. Handles user authentication, session management, and token management.
8 lines (7 loc) • 528 B
TypeScript
import { LoginState } from '../types';
export declare function encodeBase64(input: string): string;
export declare function base64ToURLSafe(str: string): string;
export declare function generateRandomString(length: number): string;
export declare function sha256Base64(input: string): Promise<string>;
export declare function encryptLoginState(loginState: LoginState, loginStateSecret: string): Promise<string>;
export declare function decryptLoginState(loginStateCookie: string, loginStateSecret: string): Promise<LoginState>;