You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/optional-configuration.md
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,15 @@ title: Optional Configuration
7
7
8
8
The instance (`new TwoFactorAuth()`) can only be configured by the constructor with the following optional arguments
9
9
10
-
Argument | Default value | Use
11
-
------------------|---------------|-----
12
-
`$issuer` | `null` | Will be displayed in the users app as the default issuer name when using QR code to import the secret
13
-
`$digits` | `6` | The number of digits the resulting codes will be
14
-
`$period` | `30` | The number of seconds a code will be valid
15
-
`$algorithm` | `'sha1'`| The algorithm used (one of `sha1`, `sha256`, `sha512`, `md5`)
16
-
`$qrcodeprovider` | `null` | QR-code provider
17
-
`$rngprovider` | `null` | Random Number Generator provider
18
-
`$timeprovider` | `null` | Time provider
10
+
Argument | Default value | Use
11
+
------------------|-------------------|-----
12
+
`$issuer` | `null`| Will be displayed in the users app as the default issuer name when using QR code to import the secret
13
+
`$digits` | `6`| The number of digits the resulting codes will be
14
+
`$period` | `30`| The number of seconds a code will be valid
15
+
`$algorithm` | `Algorithm::Sha1`| The algorithm used (one of `Algorithm::Sha1`, `Algorithm::Sha256`, `Algorithm::Sha512`, `Algorithm::Md5`)
16
+
`$qrcodeprovider` | `null`| QR-code provider
17
+
`$rngprovider` | `null`| Random Number Generator provider
18
+
`$timeprovider` | `null`| Time provider
19
19
20
20
**Note:** the default values for `$digits`, `$period`, and `$algorithm` provide the widest variety of support amongst common authenticator apps such as Google Authenticator. If you choose to use different values for these arguments you will likely have to instruct your users to use a specific app which supports your chosen configuration.
**Warning:** Whilst it is the default, this provider is not suggested for applications where absolute security is needed, because it uses an external service for the QR code generation. You can make use of the included offline providers listed below which generate locally.
[EndroidQrCodeProvider](qr-codes/endroid.html) and EndroidQrCodeWithLogoProvider
33
+
[EndroidQrCodeProvider](qr-codes/endroid.md) and EndroidQrCodeWithLogoProvider
34
34
35
-
[BaconQRCodeProvider](qr-codes/bacon.html)
35
+
[BaconQRCodeProvider](qr-codes/bacon.md)
36
36
37
37
**Note:** offline providers may have additional PHP requirements in order to function, you should study what is required before trying to make use of them.
38
38
@@ -52,11 +52,8 @@ use RobThree\Auth\TwoFactorAuth;
0 commit comments