export {
  AUTH_STORAGE_KEY,
  getStoredAuth,
  getMasterStoredAuth,
  getMasterLoginToken,
  clearMasterStoredAuth,
  setStoredAuth,
  clearStoredAuth,
  getToken,
  isAuthenticated,
  normalizeAuth,
} from "./storage.js";

export { consumeTokenFromUrl } from "./tokenFromUrl.js";

export {
  decodeJwtPayload,
  JWT_AUD,
  JWT_PURPOSE,
  SESSION_EXCHANGE_BY_AUD,
} from "./tokenClaims.js";

export { exchangeLaunchToken } from "./sessionExchange.js";

export {
  getHseLoginUrl,
  redirectToHseLogin,
  getMasterDashboardUrl,
} from "./loginRedirect.js";

export {
  roleFromJwt,
  userFromJwt,
  rolesFromJwt,
  roleIdsFromJwt,
  isAdminRole,
} from "./jwtPayload.js";

export { createApiClient } from "./createApiClient.js";
