Files
better-auth/packages/passkey/src/utils.ts
T

8 lines
231 B
TypeScript

import type { PasskeyOptions } from "./types";
export function getRpID(options: PasskeyOptions, baseURL?: string | undefined) {
return (
options.rpID || (baseURL ? new URL(baseURL).hostname : "localhost") // default rpID
);
}