myartsev / ember-simple-auth-jwt

Ember Simple Auth extension for JWT
MIT License
9 stars 3 forks source link

Ability to configure the response key under which the JWT can be found #12

Open zeiv opened 7 years ago

zeiv commented 7 years ago

Should be a pretty straightforward change... literally replacing a string literal with a variable.

zeiv commented 7 years ago

@myartsev While I've got you, I have a couple questions.

First, what are your thoughts on storing the decoded JWT payload in simple-auth's session.data.authenticated? It would be super useful, IMO.

Second, in my app I need to be able to remember a token until it expires. Would you consider a PR adding an option to save the JWT to local storage, defaulting to false?