Skip to content

Commit fed5990

Browse files
committed
:octocat:
1 parent 5893aac commit fed5990

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Authenticator.php

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

0 commit comments

Comments
 (0)