/**
 * Public surface of the auth module.
 *
 * Library code should import from `@/core/auth` rather than reaching into
 * individual files.
 */

export { verifyJwt, signJwt, JwtError, type JwtErrorKind } from './jwt';
export {
  setSessionCookie,
  readSessionCookie,
  clearSessionCookie,
  extractToken,
} from './cookies';
export {
  withAuth,
  assertWorkspaceAccess,
  type AuthedHandler,
  type AuthOptions,
} from './with-auth';
export {
  isStandaloneModeEnabled,
  isBootstrapStandaloneEnabled,
  isNativeAuthEnabled,
  isEmbeddedProductMode,
} from './standalone';
export { hashNativePassword, verifyNativePassword } from './password-native';
