Login failed: app.6623950681416881be18@service.cloud.appwrite.io (role: applications) missing scope (public) help pls C# .net framework app try to login
@Moderator
Could you send the code?
Also, avoid pinging everyone in the future π
okay sry
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using Appwrite; using Appwrite.Models; using Appwrite.Services; using Newtonsoft.Json;
namespace WindowsFormsApp1 { public partial class Form1 : Form {
private Client client;
public Form1()
{
InitializeComponent();
client = new Client()
.SetEndpoint("https://cloud.appwrite.io/v1") // Replace with your Appwrite endpoint
.SetProject("6623950681416881be18") // Replace with your Appwrite project ID
.SetKey("0b31aa733f199c287c635f93f29e81dfd61caab583a3d404bedadb94eea1d445790a2fb3ce627330ce9678aed19d42acae77f6a39eb3c0e5109f4e8cc2559b766d47b17995b3d4550d20c1530ce2fd532f515352810c94cc4cfbc50c69f8898571015206f91b1b6e328a42c2b6b0d995e2561046475bb7c22d8b597eb2d59bbe");
}
private async void button1_Click_1(object sender, EventArgs e)
{
try
{
Account account = new Account(client);
Session result = await account.CreateEmailPasswordSession(
email: "osamawahed1234@gmail.com",
password: "01012683392"
);
// Login successful
Console.WriteLine("Session ID: " + result.Id);
}
catch (AppwriteException ex)
{
// Error occurred during login
Console.WriteLine("Login failed: " + ex.Message);
}
}
}
}
Recommended threads
- Missing Invoice
Hi! I need help with billing on my account (marelu@gmail.com). I have never received a single invoice by email. My organization has been on the Pro plan since...
- Appwrite Functions cold start
Hello. I'm seeing really long cold starts on Appwrite Cloud Functions and wanted to know if this is expected. My function just authenticates the user, fetches ...
- Error can not create `tablesdb` event wi...
When i'm trying to add an event with `tablesdb` i get an error message My event value: `tablesdb.mtg-decklist-dev.tables.queue_parsing.rows.*.create` Same err...