Skip to content

Commit

Permalink
Merge branch 'master' into add/auth-guards
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Hobbs authored Sep 8, 2020
2 parents 97c56ae + 56f156e commit 4d73c7d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ A library for integrating [Auth0](https://auth0.com) into an Angular 9+ applicat
- [Documentation](#documentation)
- [Installation](#installation)
- [Getting Started](#getting-started)
- [Angular Universal](#angular-universal)
- [Development](#development)
- [Contributing](#contributing)
- [Support + Feedback](#support--feedback)
Expand Down Expand Up @@ -277,6 +278,12 @@ export class MyComponent {
}
```

## Angular Universal

This library makes use of the `window` object in a couple of places during initialization, as well as `sessionStorage` in the underlying Auth0 SPA SDK, and thus [will have problems](https://github.com/angular/universal/blob/master/docs/gotchas.md#window-is-not-defined) when being used in an Angular Universal project. The recommendation currently is to only import this library into a module that is to be used in the browser, and omit it from any module that is to participate in a server-side environment.

See [Guards, and creating separate modules](https://github.com/angular/universal/blob/master/docs/gotchas.md#strategy-2-guards) in the Angular Universal "Gotchas" document.

## Development

### Build
Expand Down

0 comments on commit 4d73c7d

Please sign in to comment.