1 export async function storeCredentials(id: string, password: string) {
2 if (!navigator.credentials) {
3 return; // Feature not available
8 const cred = new window.PasswordCredential({
12 await navigator.credentials.store(cred);
14 // Firefox will crash because it thinks publicKey is mandatory inside cred.
15 // Even if the spec says otherwise
16 // Current API inside Firefox