fenichelar/ember-simple-auth-token

[Fastboot] atob() global function is not available in Node.js environment

musaffa opened this issue · 4 comments

atob global function used in jwt authenticator is only a browser specific implementation. We get a reference error when calling atob in Fastboot's Node.js environment.

A possible solution is to use an isomorphic implementation of atob. For example: abab.

@musaffa Mmmm, I'm not sure I understand the use case. If you are calling getTokenData (either directly or indirectly) on the server, what session data would be used?

Cookie store. See Fastboot section of Ember Simple Auth's readme.

@musaffa Does #248 fix your issue?

No it doesn't. I've tested this commit in a Fastboot application. I've also shared my observation on that PR.