Back

Angular Auth Guard Service

  • 1
  • Web
Shoxious
22 Dec, 2023, 23:05

i have a problem with my appwrite login auth guard service.

TL;DR
The user is seeking help on how to handle guards in an Angular Auth Guard Service. They followed a tutorial but there was no example provided. They want to know how to secure their routes with Appwrite. The user is experiencing an issue with the canActivate in Angular, which is breaking.
Shoxious
23 Dec, 2023, 22:14

the can activate in angular breaks now

ideclon
23 Dec, 2023, 22:17

What is your issue?

Shoxious
23 Dec, 2023, 22:19

i would secure this routes with my appwrite account service. { path: 'home', component: TeamsComponent, canActivate: [isLoggedIn] },

but i dont find any good solutions

Shoxious
23 Dec, 2023, 22:41

but the main question is how i secure my rorutes with appwrite

D5
24 Dec, 2023, 00:00

You mean not allowing accessing a specific route, for example, if the user is not authenticated or not authorised?

Shoxious
24 Dec, 2023, 00:25

yes πŸ™‚

Shoxious
24 Dec, 2023, 10:06

i use this tutorial. but there is no example how i can handle the guards. https://appwrite.io/docs/quick-starts/angular

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more