Skip to content

Commit

Permalink
Warn users to backup PK to iCloud
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDaub committed Feb 4, 2025
1 parent c569d9c commit 7602e31
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/web/src/Passkeys.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import theme from "./theme.jsx";
import { useProvider, client, chains } from "./client.mjs";
import { ProgressBar } from "./DelegateButton.jsx";
import {
isIOS,
getLocalAccount,
supportsPasskeys,
setCookie,
Expand Down Expand Up @@ -114,8 +115,8 @@ export const RestoreDialogue = (allowlist, delegations, toast) => {
<PasskeysSVG style={{ color: "white", width: "24px" }} /> Connect with
Passkeys
</button>
<p style={{ color: "black" }}>
(Only works if you previously backed up your app key)
<p style={{ color: "black", fontSize: "8pt" }}>
(Only works if you previously backed up your app key to iCloud)
</p>
</div>
);
Expand Down Expand Up @@ -216,6 +217,9 @@ function BackupKey(props) {
}

async function create() {
if (isIOS()) {
alert("Please save your Passkey on the iOS Passwords app.");
}
const id = await generateUserId(localAccount.identity, localAccount.signer);
const publicKey = {
challenge: genVal(),
Expand Down

0 comments on commit 7602e31

Please sign in to comment.