UNPKG

@supabase/gotrue-js

Version:

Official client library for Supabase Auth

21 lines 887 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.API_VERSIONS = exports.API_VERSION_HEADER_NAME = exports.NETWORK_FAILURE = exports.EXPIRY_MARGIN = exports.DEFAULT_HEADERS = exports.AUDIENCE = exports.STORAGE_KEY = exports.GOTRUE_URL = void 0; const version_1 = require("./version"); exports.GOTRUE_URL = 'http://localhost:9999'; exports.STORAGE_KEY = 'supabase.auth.token'; exports.AUDIENCE = ''; exports.DEFAULT_HEADERS = { 'X-Client-Info': `gotrue-js/${version_1.version}` }; exports.EXPIRY_MARGIN = 10; // in seconds exports.NETWORK_FAILURE = { MAX_RETRIES: 10, RETRY_INTERVAL: 2, // in deciseconds }; exports.API_VERSION_HEADER_NAME = 'X-Supabase-Api-Version'; exports.API_VERSIONS = { '2024-01-01': { timestamp: Date.parse('2024-01-01T00:00:00.0Z'), name: '2024-01-01', }, }; //# sourceMappingURL=constants.js.map