Auth0 Angular Example (Authorization Code Grant)
This example shows Auth0 client authentication with Angular. It’s the Authorization Code Flow.
👉 Demo
👉 Under the hood Authorization Code Grant
Applications > Create Application > Type "Single Page Web Applications"
http://localhost:4200
http://localhost:4200
http://localhost:4200
environment.ts
auth0ClientDomain
to app domain (Application Settings > Basic Information > Domain
)auth0ClientId
to app client id (Application Settings > Basic Information > Client Id
)npm install
(+ probably the ng cli npm install -g @angular/cli
or run the serve command
via npx
)ng serve