I'm trying to create an Oauth2session using the sdk's but the createOauth2Session is not available on the account object for some reason await account.createOAuth2Session(Error: creatOauth2session is not available on type account)(
OAuthProvider.Google,
"http://localhost:3000",
"http://localhost:3000"
);
const client = new sdk.Client();
client
.setEndpoint(process.env.NEXT_PUBLIC_ENDPOINT!)
.setProject(process.env.NEXT_PUBLIC_APPWRITE_PROJECT!)
.setKey(process.env.NEXT_SECRET_APPWRITE_KEY!);
export const databases = new sdk.Databases(client);
export const users = new sdk.Users(client);
export const messaging = new sdk.Messaging(client);
export const storage = new sdk.Storage(client);
export const account = new sdk.Account(client);
Recommended threads
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...
- Collections list not showing up when try...
I'm trying to create new relationship attribute but both one way and two way relationship is not showing up collections list to connect with my relationship att...
- I have try to use the appwrite in to the...
Invalid Origin. Register your new client (oailedjdbkhlkakmnnapoonllbnfmfij) as a new Web (Chrome Extension) platform on your project console dashboard