-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having 401 Unauthorized only with mobile #305
Comments
I found a related issue: #299 |
This is in production right now! |
@casertap - what version of devise_token_auth are you running, and are you using localStorage or cookies as the preferred persistence mechanism? |
devise_token_auth v0.1.32.beta10 |
my bad. It actually works with the option -> storage: 'localStorage' |
@casertap - recently fixed an issue in ng-token-auth where an invalid cookie expiration was preventing iOS from correctly storing auth tokens as a cookie. see also: lynndylanhurley/ng-token-auth#172 Might be worth pulling ng-token-auth from master and testing cookie storage. FWIW - iOS private browsing will not support localStorage, so you'll have to do a check during configuration. |
My authentication works on my desktop but when I use my mobile it does not work.
I am using ng-token-auth and devise_token_auth for my angularjs application.
SessionsController is happening correctly. I can retrieve the new logged in user.
But any subsequent request will do (mobile only):
If I refresh the mobile browser (Chrome & Safari) , then I am out.
On my desktop it do:
I tested with Chrome and Safari and an IPhone and it does not work.
On xcode iphone simulator it works fine.
On Chrome and Safari desktop it works also.
Does anyone have a clue?
The text was updated successfully, but these errors were encountered: