
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
- Stuck in "deleting"
my parent element have relationship that doesnt exist and its stuck in "deleting", i cant delete it gives me error: Collection with the requested ID could not b...
- Help with 409 Error on Relationship Setu...
I ran into a 409 document_already_exists issue. with AppWrite so I tried to debug. Here's what I've set up: Collection A has 3 attributes and a two-way 1-to-m...
- Database Double Requesting Error.
I am getting error for creating new document in an collection with new ID.unique() then too getting error of existing document. When button is pressed one docum...
