Use 2 min timeout, no need to override on the client
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user