mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
16 lines
458 B
Markdown
16 lines
458 B
Markdown
import { Client, Account, OAuthProvider } from "react-native-appwrite";
|
|
|
|
const client = new Client()
|
|
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
.setProject('5df5acd0d48c2'); // Your project ID
|
|
|
|
const account = new Account(client);
|
|
|
|
account.createOAuth2Token(
|
|
OAuthProvider.Amazon, // provider
|
|
'https://example.com', // success (optional)
|
|
'https://example.com', // failure (optional)
|
|
[] // scopes (optional)
|
|
);
|
|
|