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
While login with my credentials to CRM. I've got correct response, but while trying to login with same credentials at storefront, in response I've got 200 with jwt in cookies which is incorect behavior. This JWT token wont allow me to open /account/dashboard, because it should not be generated, it happens because user and customer use same fields in database without any difference.
You probably need to change the logic in the auth routes, as you currently only recognise which provider you should use.
Expected behavior
Separate authentication logic based on which type of user is trying to authenticate.
Actual behavior
Logic connects customer and user, but does not work corectlly.
Link to reproduction repo
Medusa Starter
The text was updated successfully, but these errors were encountered:
Package.json file
Node.js version
v20.5.1
Database and its version
PostgresSQL 16.2
Operating system name and version
MacOS Sequoia 15.0.1
Browser name
Brave
What happended?
While login with my credentials to CRM. I've got correct response, but while trying to login with same credentials at storefront, in response I've got 200 with jwt in cookies which is incorect behavior. This JWT token wont allow me to open /account/dashboard, because it should not be generated, it happens because user and customer use same fields in database without any difference.
You probably need to change the logic in the auth routes, as you currently only recognise which provider you should use.
Expected behavior
Separate authentication logic based on which type of user is trying to authenticate.
Actual behavior
Logic connects customer and user, but does not work corectlly.
Link to reproduction repo
Medusa Starter
The text was updated successfully, but these errors were encountered: