Fairly new to appwrite and running on svelte via the sdk.
Just wanna use the gitlab oauth provider with my gitlab instance and getting the error above.
Just checked all the necessary id's in my env file and there are all correct. GitLab oauth also working fine. Only the api complains.
Am i missing something in the configurations below?
const server = {
endpoint: import.meta.env.VITE_APP_ENDPOINT.toString(),
project: import.meta.env.VITE_APP_PROJECT.toString(),
collection: import.meta.env.VITE_APP_COLLECTION_ID.toString(),
database: import.meta.env.VITE_APP_DATABASE_ID.toString(),
};
const client = new Appwrite();
const account = new Account(client);
const database = new Databases(client);
client.setEndpoint(server.endpoint).setProject(server.project);
For login:
await sdk.account.createOAuth2Session("gitlab", "http://example.com/", "https://example.com/login", [ "openid", "profile", "email" ]);
The same goes also for oidc login with keycloak as a provider.
I would appreciate some smarter head than mine.