fix: avoid prompt in passkey registration
This commit is contained in:
1 parent
c60ff543b5
commit
7c257ae8f9
1 file changed
+1
-1
+1
-1
@@ -6961,7 +6961,7 @@ async function loadPasskeys(){
|
||||
|
||||
async function registerPasskey(){
|
||||
if(!window.PublicKeyCredential||!navigator.credentials){showToast('Passkeys require a supported browser and secure context.');return;}
|
||||
const label=(window.prompt('Name this passkey', 'This device')||'Passkey').trim();
|
||||
const label='This device';
|
||||
try{
|
||||
const optData=await api('/api/auth/passkey/register/options',{method:'POST',body:'{}'});
|
||||
const pk=optData.publicKey;
|
||||
|
||||
Reference in new issue
Block a user