I am creating login system in my Angular application. Everything works fine, I have just one problem with my AuthGuard. When I refresh the page in whi ...
I am creating login system in my Angular application. Everything works fine, I have just one problem with my AuthGuard. When I refresh the page in whi ...
so i want to implement auth guard to redirect user to login page if he is not logged in yet. For example , when am in login page , when i type "/dash ...
I am using hasCustomClaim to guard a route from non admin users. The problem here is after a simple user tries to visit the forbidden path, he get ...
I have the following routes, and I need to render the Conditional component in some specific routes, but the shared component in all routes. How can I ...
In our project, I have to implement a navigation or redirect to a maintenance page, if maintenance mode is activated. I wanted to do this in the AuthG ...
I implemented a simple auth service and auth guard: auth.service.ts: auth.guard.ts: but it always returns false after I already logged in inside ...
i am protecting all my routes with a single Authguard and right now i am using in each route my application has 30+ routes and so i need to type th ...
I'm using an canActivate class method to make an authguard from my pages, when only autorizated the user access this page if pass the boolean check. T ...
My group and I are building a website using angular for the client side. We're trying to use AuthGuard to lockdown the routes but are having trouble n ...
I'd like to move the CanActivate method out of my Auth.guard.ts to rather be in each pages component. The reason for this is that my auth guard file i ...
I am struggling to figure out what is going on with my canActivate Method. Currently, I am able to log in and see that my user credentials are being s ...
I have a website that it is divided into some ordinary components that can be accessed by any user and one protected component which is shielded by Au ...
After a user is authenticated, if user is of admin role, the menu items - movie, genres, actor and movie theater are shown in the menu else they remai ...
I am setting up auth using access tokens and refresh tokens. I am largely there, but I am having trouble understanding how to refresh the access token ...
If I refresh the page when I'm logged in, the Guard redirects me to the login page. Is there a way for redirecting to the login page only if the user ...
I'm having trouble getting a redirect in my routing module working, and adding an AuthGuard in CanActivate complicates it even further. Here is a simp ...
I am trying to check multiple condition to let user login. I was able implement authguard when user is logged In successfully. Not only user need vali ...
I am begginer at Nestjs. I trying to get access-token from login route. I followed the exact steps shown in NestJs Authentication docs. But I getting ...
My Auth Guard is working as intended in regards to attempting to search a URL without logging in. However, when signing in, the navigation in the URL ...
I want to use a guard to decide whether or not a user can navigate to the login pag, but I know my logic is faulty because of a Promise. See my code b ...