💻 Tech
To facilitate logging out:
- Ensure that your Auth0 application’s Allowed Logout URLs field is filled with valid logout URLs. It should be the same as the one you defined in your application routes in Angular.
- In you Angular app’s component, include AuthService in the constructor parameters:
public auth: AuthService
- Call the
logout
method:this.auth.logout()