@wristband/nextjs-auth
Version:
SDK for integrating your NextJS application with Wristband. Handles user authentication and token management.
9 lines (8 loc) • 549 B
JavaScript
export const FORM_URLENCODED_MEDIA_TYPE = 'application/x-www-form-urlencoded';
export const JSON_MEDIA_TYPE = 'application/json;charset=UTF-8';
export const LOGIN_REQUIRED_ERROR = 'login_required';
export const LOGIN_STATE_COOKIE_SEPARATOR = '#';
export const LOGIN_STATE_COOKIE_PREFIX = `login${LOGIN_STATE_COOKIE_SEPARATOR}`;
export const NO_CACHE_HEADERS = { 'Cache-Control': 'no-store', Pragma: 'no-cache' };
export const REDIRECT_RESPONSE_INIT = { status: 302, headers: NO_CACHE_HEADERS };
export const TENANT_DOMAIN_TOKEN = '{tenant_domain}';