j-toker
j-toker copied to clipboard
User config not remembered in the stored credentials
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