Closed adrianofoschi closed 4 months ago
On passkey.create I have this error Error: NotConfigured
passkey.create
Error: NotConfigured
The code:
... const rp = { id: 'mydomain.com', name: 'mydomain.com', } satisfies PublicKeyCredentialRpEntity; const user = { id: utils.encodeBase64url(new TextEncoder().encode(nickname)), displayName: nickname, name: nickname, } satisfies PublicKeyCredentialUserEntityJSON; const authenticatorSelection = { userVerification: "preferred", residentKey: "preferred", } satisfies AuthenticatorSelectionCriteria; try { const json = await passkey.create({ challenge, pubKeyCredParams: [{ alg: -7, type: "public-key" }], rp, user, authenticatorSelection, attestation: 'none' }); catch(e) { console.log(e) }
passkey.isSupported() returns true
passkey.isSupported()
true
I created an expo development build locally (build.apk) then I extracted the certificate with
build.apk
keytool -printcert -jarfile build.apk
Finally I put the certificate in mydomain.com/.well-known/assetslink.json
It was related to lineagesOS custom ROM. It works perfectly with stock android.
On
passkey.create
I have this errorError: NotConfigured
The code:
passkey.isSupported()
returnstrue
I created an expo development build locally (
build.apk
) then I extracted the certificate withFinally I put the certificate in mydomain.com/.well-known/assetslink.json