aurelia-auth icon indicating copy to clipboard operation
aurelia-auth copied to clipboard

Allow Aurelia-Auth to set the auth token as a cookie

Open SeanFarrow opened this issue 8 years ago • 2 comments

Hi,

I am using Aurelia-auth with SignalR and IdentityServer and am wondering whether when a user is authenticated Aurelia-auth set the token as a cookie as well as using the auth header. If it doesn't could this be added/how can I do this? Any help appreciated. Kind regards Sean.

SeanFarrow avatar Sep 17 '16 04:09 SeanFarrow

@paulvanbladel I would be keen to have a go at a PR for this enhancement sometime in the next week, if it's something you're interested in having?

'storage.js' would obviously get a bit more complex due to the lack of a similar storage/cookies API.

This would open up the future possibility of a graceful fallback to cookies, which would address #160.

chriswait avatar Nov 13 '16 23:11 chriswait

Hi @chriswait . cool. As long as things stay nicely backward compat. Thanks.

paulvanbladel avatar Nov 14 '16 15:11 paulvanbladel