Skip to content

Commit 448ebfb

Browse files
committed
:octocat:
1 parent f2616e9 commit 448ebfb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Authenticator.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
/**
1919
* Yet another Google authenticator implementation!
2020
*
21+
* Note: This class has been reduced oover time to a front-end to the several authenticator classes
22+
* (`HOTP`, `TOTP`, ...), which can be invoked on their own. `Authenticator` will remain for convenience.
23+
*
2124
* @link https://tools.ietf.org/html/rfc4226
2225
* @link https://tools.ietf.org/html/rfc6238
2326
* @link https://github.com/google/google-authenticator
@@ -34,7 +37,7 @@ class Authenticator{
3437
*/
3538
public function __construct(
3639
SettingsContainerInterface|AuthenticatorOptions $options = new AuthenticatorOptions,
37-
string|null $secret = null,
40+
#[SensitiveParameter] string|null $secret = null,
3841
){
3942
// phpcs:ignore
4043
$this->setOptions($options);

0 commit comments

Comments
 (0)