Hi there,
I have a problem with setting up OAuth.
I followed the documentation to set up OAuth for GitHub and Google. I used this documentation to set it up in GitHub.
The code in the end looks like this:
// file: client.dart
Client client = Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setProject(dotenv.get('PROJECT_ID'))
.setSelfSigned(
status: true,
);
// file: account.dart
final Account account = Account(client);
// file: login_form.dart
// - Inside a button callback:
await account.createOAuth2Session(
provider: 'github',
);
The PROJECT_ID is set, the connection is working in other areas.
With or without "self signed" does not change the result.
I am using my smartphone to run the code.
What's your project id?
Can you check what's the exact url on this page?
Recommended threads
- type generation on same columns in table
is there way to prevent this ? or only need to update column name like table prefix?
- Unable to send verification email
Hi! I’m trying to access my project on Appwrite Cloud (fra.cloud.appwrite.io), but I keep getting this popup saying: “To continue using Appwrite Cloud, please...
- Converting circularstructure to JSON
Hello 👋, when this will be fixed on Appwrite Sites? It's draining our quotas for Sentry, it must be a problem with the default logger which is always on for Ap...