angular-client-side-auth icon indicating copy to clipboard operation
angular-client-side-auth copied to clipboard

Random Questions

Open cyprusglobe opened this issue 11 years ago • 2 comments

wondering if you can use this with firebase simple auth https://www.firebase.com/docs/security/simple-login-email-password.html

https://www.firebase.com/docs/security/simple-login-overview.html

Thanks

cyprusglobe avatar May 28 '14 16:05 cyprusglobe

I haven't tried, but I doubt you can use it with the solution as it presently is in the repo. You need to be able to tweak some of the server-side code to set the user cookie, and from what I can tell you can't do that using this API...

Perhaps you can make it work if you suspend bootstrapping of your Angular app while you fire off an AJAX request to Firebase requesting the current logged in user (as a replacement for the server-side cookie). Then when it responds and you know the user's login status you can bootstrap your Angular application in the callback to the AJAX request.

I'll try to do an experiment on this if I get some more time on my hands :)

fnakstad avatar May 30 '14 01:05 fnakstad

Thanks,

@fnakstad

cyprusglobe avatar May 30 '14 16:05 cyprusglobe