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
{{ message }}
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
Is there any way to handle tokens from 2 different token values? Any one is present at a time. This is required for session cookies for different type of user.
For example,
buyer login has a cookie with name buyer-token and
seller login has a cookie with name seller-token.
If any one cookie is present than user should be authenticated.
Anyway to achieve this?
The text was updated successfully, but these errors were encountered:
My thoughts are that probably isn't the best way to approach your problem.
I think that using a single token, specifying a role (or roles) in that would be more correct.
You could create another middleware which looks for the two cookies and if one is found renames it to token and configure this middleware to look for cookie named token.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is there any way to handle tokens from 2 different token values? Any one is present at a time. This is required for session cookies for different type of user.
For example,
buyer login has a cookie with name buyer-token and
seller login has a cookie with name seller-token.
If any one cookie is present than user should be authenticated.
Anyway to achieve this?
The text was updated successfully, but these errors were encountered: