File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,14 +51,14 @@ public struct WebAuthnManager {
51
51
/// - Parameters:
52
52
/// - user: The user to register.
53
53
/// - timeout: How long the browser should give the user to choose an authenticator. This value
54
- /// is a *hint* and may be ignored by the browser. Defaults to 60 seconds .
54
+ /// is a *hint* and may be ignored by the browser. Defaults to 300000 milliseconds (5 minutes) .
55
55
/// - attestation: The Relying Party's preference regarding attestation. Defaults to `.none`.
56
56
/// - publicKeyCredentialParameters: A list of public key algorithms the Relying Party chooses to restrict
57
57
/// support to. Defaults to all supported algorithms.
58
58
/// - Returns: Registration options ready for the browser.
59
59
public func beginRegistration(
60
60
user: PublicKeyCredentialUserEntity ,
61
- timeout: Duration ? = . seconds ( 3600 ) ,
61
+ timeout: Duration ? = . milliseconds ( 300000 ) ,
62
62
attestation: AttestationConveyancePreference = . none,
63
63
publicKeyCredentialParameters: [ PublicKeyCredentialParameters ] = . supported
64
64
) -> PublicKeyCredentialCreationOptions {
You can’t perform that action at this time.
0 commit comments