Security - Method setAuthenticated deprecated, do i still have to use it until Symfony 6+ ? #50603
Unanswered
YannickDurden
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Hi, you have to call |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Following the snippet below:
How I can replace the setAuthenticated method? Because if I stop to using it, my user is not logged.
The variable
$authenticatedToken
is an instance of JwtToken, which one extends AbstractToken. And in this class, we can find$authenticated
with some methods.Or maybe, if I'm using the deprecated method, when I'll update to Symfony 6+, the login still works?
Beta Was this translation helpful? Give feedback.
All reactions