j-toker icon indicating copy to clipboard operation
j-toker copied to clipboard

User config not remembered in the stored credentials

Open FlandersBurger opened this issue 3 years ago • 0 comments

I have 2 types of users in my application, customer and admin. customer is the default user config. $.auth.configure will check if there's a token present and if so will validate that token. When I'm logged in as an admin and refresh the page, it tries to validate the admin on the customer auth instead of the admin auth which leads me to believe it doesn't remember the config of the logged-in user.

it tries to validate the token here: http://localhost:3000/auth/validate_token

instead of here: http://localhost:3000/admin_auth/validate_token

FlandersBurger avatar Oct 01 '21 17:10 FlandersBurger