[GH-ISSUE #112] Authenticator is always returning true for ::isAuthenticated() #289

Closed
opened 2026-03-01 17:48:56 +03:00 by kerem · 1 comment
Owner

Originally created by @0x029Ax0 on GitHub (Dec 12, 2018).
Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/112

I'm trying to implement your package and so far saving secrets and verifying codes is working great. But I want to use my own middleware and the following code always returns true (placed in a controller for debugging purposes, but same effect in my middleware).

$authenticator = app(Authenticator::class)->boot($request);
$authenticator->logout();
Google2FA::logout();
dd($authenticator->isAuthenticated(), $request);

Anything I could be missing? If you need more information please ask, not sure what else to tell you.

Originally created by @0x029Ax0 on GitHub (Dec 12, 2018). Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/112 I'm trying to implement your package and so far saving secrets and verifying codes is working great. But I want to use my own middleware and the following code always returns true (placed in a controller for debugging purposes, but same effect in my middleware). ``` $authenticator = app(Authenticator::class)->boot($request); $authenticator->logout(); Google2FA::logout(); dd($authenticator->isAuthenticated(), $request); ``` Anything I could be missing? If you need more information please ask, not sure what else to tell you.
kerem closed this issue 2026-03-01 17:48:56 +03:00
Author
Owner

@Datalink-Wouter commented on GitHub (Jul 26, 2019):

Do you know how to solve this?
I got the same thing.
Thanks

<!-- gh-comment-id:515335033 --> @Datalink-Wouter commented on GitHub (Jul 26, 2019): Do you know how to solve this? I got the same thing. Thanks
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/google2fa#289
No description provided.