userapp-io / userapp-angular

AngularJS module that adds user authentication to your app with UserApp.
https://userapp.io
MIT License
233 stars 84 forks source link

ReferenceError: Cookies is not defined #12

Open kersten opened 10 years ago

kersten commented 10 years ago

Hello, I've implemented userapp as wrote in the documentation, but I always get the error when app.run is called and the user module is injected.

angularjs: 1.2.25 userapp-angular: 2.0.4 requirejs: 2.1.15 I have already tried it with angluar-cookies, but this dosen't help. Do you know this problem?

Greetings

kersten commented 10 years ago

Fixed this error by myself, just required the original Cookies library and pasted it into the window.Cookies, maybou you could fix this. I think this is related to requirejs.

thomas-tran commented 9 years ago

Hi kersten,

I hit the same issue when using requirejs, would you help to share with me how to fix this?

Thanks Thomas

kersten commented 9 years ago

Hi, I will check this and tell you when I found it ;) I think it was very easy. Just require the cookie lib and set it to the window object before You call app.run

thomas-tran commented 9 years ago

Hi,

I saw in the https://app.userapp.io/js/angularjs.userapp.js at the very bottom, there is a version of Cookie.js however I am not sure whether this is the correct library to use. /! Cookies.js - 0.3.1; Copyright (c) 2013, Scott Hamper; http://www.opensource.org/licenses/MIT /