@wristband/nextjs-auth
Version:
SDK for integrating your NextJS application with Wristband. Handles user authentication and token management.
8 lines (7 loc) • 531 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>;