
I'm using OAuth in my app for authentication, but I want to collect additional info from users like their city, zip code, and other stuff. how can I collect these required fields and not create the account info if any of this info isn't provided?

Why can't you create the account first?

well in that case, if the user doesn't fill the other fields ever, they'll still be counted as a verified user

So?

but i wanna keep all the additional info (city, zip code, username) required

Well you can't because the API doesn't accept any additional params

yeah, I know. I'm mainly looking if someone can help me with a workaround idea

I would take the information after creating the oauth session

well, then is there any way/workaround i can keep the account "unverified" unless the other fields are provided? cuz afaik, createOAuth2Session
sets the account as verified

No. I would use a user label instead

you mean using a custom attribute in the user doc that indicates if the other fields are filled?


how to collect additional info from user when using OAuth? [SOLVED]

[SOLVED] how to collect additional info from user when using OAuth?
Recommended threads
- not getting cookie in header of appwrite...
my website working locally and on vercel , but when hosting on appwrite sites the main core issue is its not getting the cookie . <@743532656767270934> help
- custom domain failing
I have an appwrite app at a subdomain myapp.topdomain.com. I want to configure the appwrite endpoint to use a 2nd level subdomain e.g. api.myapp.topdomain.com. ...
- Getting CORS error for GraphQL query on ...
Getting CORS error when making GraphQL queries using Appwrite's SDK in Next.js (client-side). Login/signup works fine. Only GraphQL is failing on both localhost...
