mirror of
https://github.com/ente-io/ente.git
synced 2025-08-06 14:43:20 +00:00
Fix
This commit is contained in:
parent
b07841f972
commit
a8834f5d7e
@ -23,7 +23,9 @@ const accountsAuthenticatedRequestHeaders = (): Record<string, string> => {
|
||||
const token = getToken();
|
||||
if (!token) throw new Error("Missing accounts token");
|
||||
const headers: Record<string, string> = { "X-Auth-Token": token };
|
||||
const clientPackage = nullToUndefined(localStorage.get("clientPackage"));
|
||||
const clientPackage = nullToUndefined(
|
||||
localStorage.getItem("clientPackage"),
|
||||
);
|
||||
if (clientPackage) headers["X-Client-Package"] = clientPackage;
|
||||
return headers;
|
||||
};
|
||||
@ -123,6 +125,13 @@ export const getPasskeyRegistrationOptions = async () => {
|
||||
return await res.json();
|
||||
};
|
||||
|
||||
interface PasskeyRegistrationOptions {
|
||||
sessionID: string;
|
||||
options: {
|
||||
publicKey: PublicKeyCredentialCreationOptions;
|
||||
};
|
||||
}
|
||||
|
||||
const finishPasskeyRegistration = async (
|
||||
friendlyName: string,
|
||||
credential: Credential,
|
||||
|
Loading…
x
Reference in New Issue
Block a user