Use 2 min timeout, no need to override on the client

This commit is contained in:
Manav Rathi
2024-06-10 21:26:38 +05:30
parent 89f58236fc
commit 00769bdd7a
2 changed files with 2 additions and 7 deletions

View File

@@ -69,7 +69,7 @@ func NewRepository(
Timeouts: webauthn.TimeoutsConfig{
Login: webauthn.TimeoutConfig{
Enforce: true,
Timeout: time.Duration(5) * time.Minute,
Timeout: time.Duration(2) * time.Minute,
},
Registration: webauthn.TimeoutConfig{
Enforce: true,

View File

@@ -413,12 +413,7 @@ export const beginPasskeyAuthentication = async (
*/
export const signChallenge = async (
publicKey: PublicKeyCredentialRequestOptions,
) => {
// Allow up to 60 seconds to wait for the retrieval
publicKey.timeout = 60 * 1000;
return navigator.credentials.get({ publicKey });
};
) => navigator.credentials.get({ publicKey });
interface FinishPasskeyAuthenticationOptions {
passkeySessionID: string;