You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need to rewrite frontend middleware within the middleware/ directory.
Create a broad auth redirect for any non-authenticated user in a file named auth.global.ts.
For role-specific page guards, make a separate middleware based on role (for example, an admin.ts role middleware that can be registered for pages that only admins have access to).
Description
middleware/directory.auth.global.ts.admin.tsrole middleware that can be registered for pages that only admins have access to).