Skip to content
Back

Maintaining sessions between subdomains

  • 0
  • Auth
  • Web
Taha Hameed
20 Apr, 2025, 14:16

I have two subdomains which have the same root, sub1.example.com and sub2.example.com, I want to use the session created in sub1 in sub2, like SSO, I am checking for the session in sub2 but getting 401, general_unauthorized_scope (attached image)

  1. I am using the same appwrite endpoint in both subdomains.
  2. I have the added both subdomain's url in the integration/platform of my project.
TL;DR
Developers are facing issues maintaining sessions between subdomains for SSO. They are using the same appwrite endpoint for both subdomains and have added the URLs of both subdomains in the integration/platform settings of the project. However, when checking for the session in sub2, they are receiving a 401 error with the message "general_unauthorized_scope".
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