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
- Locked out of account
Hey guys, I have a paid account and have been locked out. Apologies for using this method, but I'm getting no response via the contact us page. I had a old do...
- Transaction Error
AppwriteException: Transaction with the requested ID could not be found. at Generator.next (<anonymous>) { code: 404, type: 'transaction_not_found', r...
- Can not get the logged in user data in N...
I'm trying to get the user data after i log in with otp but it get this error : AppwriteException: User (role: guests) missing scopes (["account"]) at Gen...