Back

User (role: guests) missing scope (account) on social login

  • 0
  • Accounts
  • Web
RainyDev
23 Apr, 2023, 21:00

Hello there, I'm trying to add social login to the react todo app and when I click on login with discord I get redirected to discord properly but then when I login I don't get logged in and see a request with "User (role: guests) missing scope (account)".

Anyone have an idea what is wrong here?

You can check it out on https://RainyDo.ch Repo: https://github.com/RainySystems/RainyDo (feel free to open a pull request if you find the issue and know a fix 🙂 )

Best regards RainyDev

TL;DR
User is encountering an issue with social login on their React todo app. After clicking on the login with Discord button, they are redirected to Discord, but not logged in. They receive a request with the message "User (role: guests) missing scope (account)". Solution is not provided.
Drake
23 Apr, 2023, 21:06

One reason why this might happen is if the browser blocks 3rd party cookies. See https://appwrite.io/docs/custom-domains

RainyDev
23 Apr, 2023, 21:06

Ahh that would make sense

RainyDev
23 Apr, 2023, 21:07

but would be really unfortunate since I can't add custom domains in my deployment :c

Drake
23 Apr, 2023, 21:07

Why?

RainyDev
23 Apr, 2023, 21:08

I've deployed it with coolify and there seems to be no support for custom domains

RainyDev
23 Apr, 2023, 21:08

the cname record is there

RainyDev
23 Apr, 2023, 21:08
RainyDev
23 Apr, 2023, 21:08

seems to be a coolify proxy issue

RainyDev
23 Apr, 2023, 21:09

need to wait for coolify v4 I guess where the proxy config can be edited

Drake
23 Apr, 2023, 21:11

So this allows you to set up the SSL certificate. Do you have any other way to set up the SSL certificate?

RainyDev
23 Apr, 2023, 21:12

I can only configure one domain name(virtual host) for a deployment in coolify so I have to wait

Drake
23 Apr, 2023, 21:12

What if you turn on the proxy in cloudflare?

RainyDev
23 Apr, 2023, 21:12

as a temporary solution I'll keep rainydo running on a subdomain of the maindomain and do a redirect from the rainydo domain

RainyDev
23 Apr, 2023, 21:13

doesn't change anything unfortunately the origin is still the same so the proxy won't know what to do with it 😄

Drake
23 Apr, 2023, 21:13

Huh?

Drake
23 Apr, 2023, 21:14

Oh NVM

Drake
23 Apr, 2023, 21:14

I see what you mean

Drake
23 Apr, 2023, 21:14

I see. That sounds right

RainyDev
23 Apr, 2023, 21:14

worked perfectly on the subdomain btw

RainyDev
23 Apr, 2023, 21:14

So I'll just have to wait it out 🙂

Drake
23 Apr, 2023, 21:15

Unless if you can manually go into coolify and manually edit the nginx config

RainyDev
23 Apr, 2023, 21:15

That would be a pain and would get overwritten I guess

RainyDev
23 Apr, 2023, 21:15

I've not digged really deep into it but I expect this sort of behaviour 😄

RainyDev
23 Apr, 2023, 21:16

Thank you for your help tho 🙂 Straight away useful and works now I was getting horrified already and hotfixed a few things what couldn't even be hotfixed on the webapp's side 😄

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