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
I have the onEnter passed into my router but Auth.currentUser() makes a post to users/sign_on.json even when I dont want it to. I just made a get request for the register page and it already tries to log in.. I checked Auth.currentUser() in the console and it returns a promise with a status of 0 and nothing else.
This is the post request made automatically after I make a get request for the user registration page.
Started POST "/users/sign_in.json" for ::1 at 2015-11-07 18:01:46 -0800
Processing by Devise::SessionsController#create as JSON
Parameters: {"user"=>{}, "session"=>{"user"=>{}}}
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms)
I think a solution would be for me to user Auth._currentUser which returns null but the docs say just to rely on the Auth.currentUser() promise instead..
The text was updated successfully, but these errors were encountered:
I have the
onEnter
passed into my router butAuth.currentUser()
makes a post tousers/sign_on.json
even when I dont want it to. I just made a get request for theregister
page and it already tries to log in.. I checkedAuth.currentUser()
in the console and it returns a promise with a status of 0 and nothing else.This is the post request made automatically after I make a get request for the user registration page.
Started POST "/users/sign_in.json" for ::1 at 2015-11-07 18:01:46 -0800
Processing by Devise::SessionsController#create as JSON
Parameters: {"user"=>{}, "session"=>{"user"=>{}}}
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms)
I think a solution would be for me to user
Auth._currentUser
which returnsnull
but the docs say just to rely on theAuth.currentUser()
promise instead..The text was updated successfully, but these errors were encountered: