Hey, got 2 questions regarging Signin with OAuth
- I know it returns a Session object, is there a way to have it reauth or convert to an account object so that account.get works?
- When redirecting to my OAuth success page, i have it calling account.getSession('current') and I am getting
appwriteException: User (role: guests) missing scope (account)Not sure what I am doing wrong
TL;DR
The user is having two questions about Signin with OAuth:
1. They want to know if there is a way to reauth or convert the returned Session object to an account object so that account.get works.
2. When redirecting to their OAuth success page and calling account.getSession('current'), they are getting an error saying "User (role: guests) missing scope (account)" and are unsure what they are doing wrong.You might be facing a problem with 3rd party cookies. Either allow them in your browser settings or have your Appwrite endpoint be a sub domain of your app.
It's currently redirecting to localhost for dev purposes, will it not work with localhost?
You will still need to do what I recommended. For the domain approach, you can modify your hosts file.
Recommended threads