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
Angular 17 enabled SSR and prerender by default and this library uses window, not globalThis and doesn't detect if in SSR/Edge
so programmer has to those checks and wrap things with isPlatformBrowser() checks.
I am not sure if whole server side flow is planed in scope of this library, but making tryLogin / initLoginFlow a NO-OP in SSR? maybe?
The text was updated successfully, but these errors were encountered:
@ev45ive Hey just came across this issue, I'm getting console errors saying the window is not defined whenever I do ng serve. is there a chance you can elaborate on this?
I tested the whole login flow and it is working. I'm looking at your temporary fix and I'm not sure where I'm supposed to place the first snippet of code you posted. I already adjusted the authConfig to have it look like yours. Again, I'm just not sure where in my code I need to place the first part.
Angular 17 enabled SSR and prerender by default and this library uses
window
, notglobalThis
and doesn't detect if in SSR/Edgeso programmer has to those checks and wrap things with
isPlatformBrowser()
checks.I am not sure if whole server side flow is planed in scope of this library, but making
tryLogin
/initLoginFlow
a NO-OP in SSR? maybe?The text was updated successfully, but these errors were encountered: