Web Developer
my vercel logs
at _Client.redirect (node_modules/node-appwrite/dist/client.mjs:255:13) at async Account.createOAuth2Token (node_modules/node-appwrite/dist/services/account.mjs:1148:12) at async p (/var/task/.next/server/chunks/7178.js:1:23438) at async (/var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:127:1299) at async rc (/var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:126:11937) at async an (/var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:132:1048) at async eB (/var/task/node_modules/next/dist/compiled/next-server/server.runtime.prod.js:2871:22612) at async el (/var/task/node_modules/next/dist/compiled/next-server/server.runtime.prod.js:2872:1548) at async aT.renderToResponseWithComponentsImpl (/var/task/node_modules/next/dist/compiled/next-server/server.runtime.prod.js:2872:1643) { code: 400, type: '', response: '', digest: '728798511'}```
code```jsimport { Client, Account, OAuthProvider } from "appwrite";
export const client = new Client();
client .setEndpoint("https://cloud.appwrite.io/v1") .setProject("668932430014a23f9ed8");// .set(process.env.NEXT_PUBLIC_API_KEY);console.log(client);export const account = new Account(client);export { ID } from "appwrite";
// Go to OAuth provider login pageaccount.createOAuth2Session( OAuthProvider.Github, // provider "http://www.blingo.tech/", // redirect here on success "http://www.blingo.tech/login/", // redirect here on failure ["repo", "user"] );