You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 2nd code example in storing authentication in the session section, it's not possible to get current User with $user = $token->getUser();. SimplePreAuthenticationListener is skipped when current user is not authenticate with AnonymousToken, which in this case is true.