google2fa icon indicating copy to clipboard operation
google2fa copied to clipboard

A One Time Password Authentication package, compatible with Google Authenticator.

Results 20 google2fa issues
Sort by recently updated
recently updated
newest added

I'm using the following code: ``` $timestamp = Google2FA::verifyKeyNewer(Auth::user()->totp_secret, $request->otp_code, Auth::user()->last_login, 1); if ($timestamp !== false) { dd("valid"); } else { dd("invalid"); } ``` To set the timestamp itself I...

fix for `Unsupported operand types: string + int `

As was building some of my own tests I noticed that where you assert `verifyKeyNewer` should be returning a timestamp, it actually returns a boolean. Take the following as an...

I'm not sure whether this is bug or a feature requirement but in many 2FA implementations user can select "Don't ask for 2FA code for XXX days." and then after...

I was able to get it to work on the web, but implementing it with Laravel API throws an error. I will like to know if I can override the...

The (old) demo page reference in the readme (https://antoniocarlosribeiro.com/technology/google2fa) shows an exception error page rather then anything useful. The previous playground link works very well, so unless the old page...

I have generated the secret, and in my authenticator both entered the key and used the qr code, both return the same codes. However, when running the `Google2FA::verifyGoogle2FA($result, $code, $timeWindow);`...

A comma at this line of a code crashes php script https://github.com/antonioribeiro/google2fa/blob/98c9e0544c9467b427c323a54a193a8f3b5762ec/src/Google2FA.php#L396 because it is not allowed for php version < 8

How exactly to used "verifyKeyNewer" I always getting a "false" value on my timestamp when using this: $timestamp = $google2fa->verifyKeyNewer($this->google2fa, $password, $this->google2fa_ts); var_dump($timestamp);

I would like to use this package on a shared server, I asked my provider but they are not answering. What would be the steps to copy the library directly...