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
{{ message }}
This repository was archived by the owner on Jul 29, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 29, 2026. It is now read-only.
Hey @remicastaing,
Thank you for implementing this. One question: why do you need to store the bearer token in the local and the session storage? The session storage preserve data only while your browser's tab is open. So I guess that the local storage should be used only. What do you think?
Not sure if this is related or not but i wanted my users logins to be persisted if the browser was closed... I changed the following and it seemed to work, just not sure if this is the correct / good way to do it:
Added the following in client/components/auth/auth.service.js
var now = new $window.Date(),
// this will set the expiration to 6 months
exp = new $window.Date(now.getFullYear(), now.getMonth()+6, now.getDate());
Activity
JaKXz commentedon Jun 19, 2014
Have a look at the roadmap for 2.0.0 (and the issues tied to that milestone)
, and in the meantime, there are similar solutions on npm.remicastaing commentedon Jun 19, 2014
Password reset is one of the topic of issue DaftMonk/modular-fs#14. I'm working on it.
remicastaing commentedon Jul 8, 2014
Password reset and also email address confirmation mechanism are the two topic of the PR DaftMonk/modular-fs#20.
remicastaing commentedon Jul 9, 2014
I'm seeking a way to implement a remember functionality and found this:
$cookieStoreyou just can set session cookies. No way to specifying an expire date. More in http://stackoverflow.com/questions/12624181/angularjs-how-to-set-expiration-date-for-cookie-in-angularjs;setandgetmethod: you have to modifyauth.service.jsandapp.js;window.localStorage;remicastaing commentedon Jul 9, 2014
I've implemented a remember me functionality in PR DaftMonk/modular-fs#21. I replaced
angular-cookieswithngStorage.wmertens commentedon Jan 13, 2015
so... why were these PRs not merged yet? They seem super useful? 😕
I would expect email confirmation/password reset to be a must when implementing local passwords.
azachar commentedon May 13, 2015
Hey @remicastaing,
Thank you for implementing this. One question: why do you need to store the bearer token in the local and the session storage? The session storage preserve data only while your browser's tab is open. So I guess that the local storage should be used only. What do you think?
Cheers,
Andrej
remicastaing commentedon May 13, 2015
You're welcome, @azachar. If the "remember me" box is checked on the login screen, the local storage is used. If not, it will be the session storage.
azachar commentedon May 14, 2015
I see, thanks!
azachar commentedon Apr 15, 2016
So is here any progress?
TimPchelintsev commentedon Jul 24, 2016
Hi. What is the status of this feature?
Koslun commentedon Jul 24, 2016
No progress at this point in time I believe. PR linked above is very outdated and would have to be changed quite a lot to be integrated.
Current focus is mainly being put behind getting the generator to Angular 2 but if anyone wants to suggest a PR it can probably get integrated.
whittssg commentedon Mar 24, 2017
Not sure if this is related or not but i wanted my users logins to be persisted if the browser was closed... I changed the following and it seemed to work, just not sure if this is the correct / good way to do it:
Added the following in client/components/auth/auth.service.js
then in the var auth = i changed:
to