GoogleAuthenticatorInterface
in
Table of Contents
- checkCode() : bool
- generateSecret() : string
- getCode() : string
- NEXT_MAJOR: add the interface typehint to $time and remove deprecation.
Methods
checkCode()
public
checkCode(string $secret, string $code[, mixed $discrepancy = 1 ]) : bool
Parameters
- $secret : string
- $code : string
- $discrepancy : mixed = 1
Return values
bool —generateSecret()
public
generateSecret() : string
Return values
string —getCode()
NEXT_MAJOR: add the interface typehint to $time and remove deprecation.
public
getCode(string $secret[, float|string|int|DateTimeInterface|null $time = null ]) : string
Parameters
- $secret : string
- $time : float|string|int|DateTimeInterface|null = null