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
- Function connected custom domain error: ...
My domain is served through Cloudflare. Domain is now connected with the appwrite function. But when accessing the domain, I get the below error. Any suggestion...
- Error | general_unknown
I have built a website using Appwrite Cloud as backend, and also using sites for deployment. My website is live but sometimes it shows Appwrite's Error general_...
- Introducing new string column types made...
Adding new string types is hugely bennificial! Unfortunately it made the current column types not editable to change their types to the new longer field types.