mirror of
https://github.com/hanzoai/sign.git
synced 2026-10-21 01:21:51 +00:00
Emails, the signing page's title, the sealed PDF's reason, the sign-in refusal and the dialogs still said Hanzo Sign. The catalogs change with the strings, message for message, so every translation keeps its id.
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,
|
|
};
|
|
};
|