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
`TwoFactorAuth` constructor requires an object able to provide a QR Code image. It is the only mandatory argument. This lets you select your preferred QR Code generator/library.
25
25
26
-
See [QR code providers documentation](docs/qr-codes.md) for more information about the different possibilites.
26
+
See [QR code providers documentation](qr-codes.md) for more information about the different possibilites.
27
27
28
28
Example code:
29
29
@@ -36,7 +36,7 @@ use RobThree\Auth\Providers\Qr\EndroidQrCodeProvider; // if using Endroid
36
36
$tfa = new TwoFactorAuth(new BaconQrCodeProvider());
37
37
// using Endroid
38
38
$tfa = new TwoFactorAuth(new EndroidQrCodeProvider());
39
-
// using a custom object
39
+
// using a custom object implementing IQRCodeProvider interface
40
40
$tfa = new TwoFactorAuth(new MyQrCodeProvider());
41
41
// using named argument and a variable
42
42
$tfa = new TwoFactorAuth(qrcodeprovider: $qrGenerator);
0 commit comments