Skip to content
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

Cookies not set #103

Closed
diegozuber opened this issue Sep 1, 2016 · 3 comments
Closed

Cookies not set #103

diegozuber opened this issue Sep 1, 2016 · 3 comments

Comments

@diegozuber
Copy link

I use the module in an Ionic project. All works perfect exept that the cookies were not set. What could be the problem?

@diegozuber
Copy link
Author

For testing purpose I replaced in the Provider File (oauth-token-provider.js) by the setToken the cookie.putObject() to a console.log(data).

bereichsaufnahme 2

If I am right I should see the server response in the console when I login, but nothing. But I can see in the Developer Tools that the request was successful and the server gives the right data back, as expected.

Hope you can help me out somehow.

@ruipenso
Copy link
Member

ruipenso commented Sep 1, 2016

I've no experience with Ionic, but AFAIK cookies will not work and you'll need to use localStorage.

We're close to support other storage methods - Refs #97.

@diegozuber
Copy link
Author

Okay problem is solved now. I replaced the cookie storage method with HTML5 localstorage and all works fine now. Seems Ionic doesn't support cookies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants