appwrite/docs/examples/1.7.x/client-flutter/examples/account/create-o-auth2session.md
2025-05-18 02:25:38 +12:00

438 B

import 'package:appwrite/appwrite.dart';

Client client = Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID

Account account = Account(client);

await account.createOAuth2Session( provider: OAuthProvider.amazon, success: 'https://example.com', // optional failure: 'https://example.com', // optional scopes: [], // optional );