Skip to content

Commit

Permalink
Merge pull request #3 from gunet/android-wrapper-webauthn-origin
Browse files Browse the repository at this point in the history
Accept WebAuthn origin from Android wrapper app
  • Loading branch information
emlun authored Nov 26, 2024
2 parents 971aeb0 + 2de66f2 commit 82bd83f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/routers/user.router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ noAuthUserController.post('/register-webauthn-finish', async (req: Request, res:
clientExtensionResults: credential.clientExtensionResults,
},
expectedChallenge: base64url.encode(challenge.challenge),
expectedOrigin: config.webauthn.origin,
expectedOrigin: [
config.webauthn.origin,
"android:apk-key-hash:DEvegOak87MZWC6pGyDa3hqKnNwptRv8iTeQssaM2ME", // TODO: Extract to config?
],
expectedRPID: config.webauthn.rp.id,
requireUserVerification: true,
});
Expand Down

0 comments on commit 82bd83f

Please sign in to comment.