mirror of
https://github.com/hanzoai/sign.git
synced 2026-10-21 01:21:51 +00:00
Mechanical brand swap across user-visible strings only. Internal package identifiers (@hanzo/sign-*), database column names, and upstream npm package names are unchanged so existing installs and APIs keep working. - 'Hanzo Sign' → 'Hanzo eSign' in README, docs, marketing pages, email copy, UI strings, page titles, meta tags, alt text. - sign.hanzo.ai → esign.hanzo.ai on every marketing link, FROM_ADDRESS fallback ([email protected]), support email, OAuth callback hosts, documentation domain, OG image URL. - github.com/hanzoai/sign → github.com/hanzoai/esign in README badges, CONTRIBUTING, docs, deploy workflow, openpage-api github proxy routes.
19 lines
512 B
TypeScript
19 lines
512 B
TypeScript
import { NEXT_PUBLIC_WEBAPP_URL } from '../constants/app';
|
|
import { PASSKEY_TIMEOUT } from '../constants/auth';
|
|
import { env } from './env';
|
|
|
|
/**
|
|
* Extracts common fields to identify the RP (relying party)
|
|
*/
|
|
export const getAuthenticatorOptions = () => {
|
|
const webAppBaseUrl = new URL(NEXT_PUBLIC_WEBAPP_URL());
|
|
const rpId = webAppBaseUrl.hostname;
|
|
|
|
return {
|
|
rpName: env('NEXT_PUBLIC_APP_NAME') || 'Hanzo eSign',
|
|
rpId,
|
|
origin: NEXT_PUBLIC_WEBAPP_URL(),
|
|
timeout: PASSKEY_TIMEOUT,
|
|
};
|
|
};
|