Skip to content

ERROR ReferenceError: window is not defined - Support For SSR / prerender #1408

@ev45ive

Description

@ev45ive

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions