i tried multipled times but the user doesnot get saved in db
can you share your code and more information on what you're trying to achieve ?
import { account } from "../appwrites";
`export const Signin = () => {
const googleAuth= async(e)=>{
await account.createOAuth2Session('google','http://localhost:3000/home',"http://localhost:3000/login")
}`
when the login completes and user gets redirected to home and when i use account.get it dosenot work
FYI, it's best to wrap code in backticks to format a bit nicer. You can use 1 backtick for inline code (https://www.markdownguide.org/basic-syntax/#code) and 3 backticks for multiline code (https://www.markdownguide.org/extended-syntax/#syntax-highlighting.
export const Signin = () => {
const googleAuth= async(e)=>{
await account.createOAuth2Session('google','http://localhost:3000/home',"http://localhost:3000/login")
} ```
Isn't this the same as https://discord.com/channels/564160730845151244/1111201523058364456? if so, please don't create duplicate posts. It's best to just continue in the same thread
ossry
sorry
Recommended threads
- Costom domain Issues
Hi Appwrite team Weβre having issues verifying a custom domain. We added the required CNAME and CAA records to our DNS provider and waited for at least 2 days a...
- No domain visible after creating functio...
Saw this in docs yet i have no domain (Pro): ``` Generated domains In the Appwrite Console's sidebar, click Functions. Under the Domains tab, you'll find the g...
- Free plan Usage
I using a free plan with one organization. I have three projects but on the free plan I should be able to have 2 projects running But in my case only 1 out of ...