appwrite/docs/examples/1.5.x/server-dotnet/examples/account/create-o-auth2session.md
2024-11-06 12:07:14 +01:00

501 B

using Appwrite; using Appwrite.Services; using Appwrite.Models; using Appwrite.Enums;

Client client = new Client() .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2"); // Your project ID

Account account = new Account(client);

await account.CreateOAuth2Session( provider: OAuthProvider.Amazon, success: "https://example.com", // optional failure: "https://example.com", // optional scopes: new List() // optional );