auth0 / angular-jwt

Library to help you work with JWTs on AngularJS
MIT License
0 stars 1 forks source link

SSR is failing window doesn't exist #173

Closed jaumard closed 6 years ago

jaumard commented 6 years ago

Hello,

I trying to enable server side rendering on an existing project but it fail because of

ReferenceError: window is not defined
    at Object.<anonymous> (/.../node_modules/@auth0/angular-jwt/bundles/core.umd.js:1:704)

I this module SSR ready ? Or did I miss something ?

gabrieleciech commented 6 years ago

This library is not designed for Angular 2+ but only for AngularJS. If you are using Angular 2+ please take a look at https://github.com/auth0/angular2-jwt

jaumard commented 6 years ago

Oups that's the one I use but I put issue on the wrong repo sorry :)