1 import { encodeBase64URL, uint8ArrayToString } from '@proton/shared/lib/helpers/encoding';
2 import type { RegisteredKey } from '@proton/shared/lib/webauthn/interface';
4 export const getId = (registeredKey: RegisteredKey) => {
5 return encodeBase64URL(uint8ArrayToString(new Uint8Array(registeredKey.CredentialID)));