Use when adding authentication to Angular applications with route guards and HTTP interceptors - integrates @auth0/auth0-angular SDK for SPAs
88
81%
Does it follow best practices?
Impact
100%
1.07xAverage score across 3 eval scenarios
Advisory
Suggest reviewing before use
Standalone Angular auth setup
Correct SDK package
100%
100%
provideAuth0 usage
100%
100%
Credentials in environment file
100%
100%
authorizationParams.redirect_uri
100%
100%
loginWithRedirect method
100%
100%
logout with returnTo
100%
100%
isLoading$ for initialization
100%
100%
isAuthenticated$ for auth check
100%
100%
user$ for profile data
100%
100%
No manual token storage
100%
100%
Route guards and HTTP interceptor
Guard uses inject(AuthService)
20%
100%
Guard checks isAuthenticated$
20%
100%
Guard redirects to login
70%
100%
canActivate applied to routes
100%
100%
authHttpInterceptorFn used
100%
100%
withInterceptors wires interceptor
100%
100%
allowedList configured
100%
100%
audience in authorizationParams
100%
100%
HttpClient used in service
100%
100%
No manual token attachment in service
100%
100%
AuthService mocking in unit tests
isAuthenticated$ as observable
100%
100%
user$ as observable
100%
100%
error$ as observable
100%
100%
loginWithRedirect spy
100%
100%
logout spy
100%
100%
getAccessTokenSilently spy
100%
100%
Mock provided via TestBed
100%
100%
No real AuthService in tests
100%
100%
error$ subscribed in component
100%
100%
Spy call verified in test
100%
100%
fbcbfb1
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.