12 lines
452 B
TypeScript
12 lines
452 B
TypeScript
// Metro module 5647 (f5648).
|
|
export function encodeUserIdForWebAuthn(a0) {
|
|
const uint8Array = new Uint8Array(16);
|
|
const dataView = new DataView(uint8Array.buffer);
|
|
dataView.setUint32(0, 821232635);
|
|
dataView.setUint16(4, 35878);
|
|
dataView.setUint16(6, 20307);
|
|
dataView.setBigUint64(8, BigInt(a0));
|
|
const r34 = String;
|
|
return btoa(r34.fromCharCode.apply(r34, [...uint8Array])).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
|
}
|