Back

problems logging out

  • 0
  • Databases
  • Auth
  • Web
  • Functions
EmoKid
18 Feb, 2025, 14:07

Good day! I started developing a website, wrote the registration and authorization, but I have a problem with roles. I haven't used them and don't understand how they work. My code is below. https://pastebin.com/3Zr0hQG3

TL;DR
The developer is having an issue with understanding roles in Laravel AuthController for Appwrite. The issue could be related to lack of ProjectID being set and the creation of a new `Client` for every action. Solution could involve setting ProjectID properly and optimizing the creation of the `Client`.
ideclon
18 Feb, 2025, 14:50

I don’t see any mention of Roles in your code. It seems to be just a Laravel AuthController for Appwrite?

ideclon
18 Feb, 2025, 14:51

The code looks fine to me, except for the lack of ProjectID being set (which I presume you just removed for posting), and the creation of a new Client for every action

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