-
-
Notifications
You must be signed in to change notification settings - Fork 614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Anonymous Token? #36
Comments
I am looking to do a very similar thing. @epicwhale did you get this working in the end? |
@lopsided excuse my delayed reply. Yes, I did via writing complete custom code and overriding some handles and registering events listeners. There isn't a simple recipe. But the trick for me was to decode the token before this bundle does it and if its a guest, don't pass it on to JWT, so the user field is never checked. You can store the session id in some other field in the token. |
Using a custom UserProvider (issue lexik#36)
I am using the JWT token (via data modifiers) to pass additional data like say a unique traceable session id to maintain state across a guest checkout. In this case, authentication is optional and the login token will not have the 'username' field set.
How do I go about achieving the above?
What are your thoughts on this?
The text was updated successfully, but these errors were encountered: