I'm working on OAuth authorization_code flow with HubSpot.
The access_token and identity I get after user has been logged in are related to a HubSpot portal (with a hub_id).
One user can have many portals so in Appwrite I registered the User with an id like this:
44XXX7714-14XXXXXX5808 (${hubspot.user_id}-${hubspot.hub_id}) but I see in console that User is identified by its email (which obviously is the same for all his portals).
And when I try to log in with another portal, I have an error:
ERROR Failed to create account: A user with the same id, email, or phone already exists in this project.
at _Client.call (node_modules/node-appwrite/src/client.ts:351:9)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Users.create (node_modules/node-appwrite/src/services/users.ts:87:13)
How do you think I can register many user profiles (email and hub_id) to avoid the email uniqueness ?
Recommended threads
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Appwrite Storage error 503s for automate...
I'm facing error 503s from Appwrite after about 5-6 seconds of making AI requests from my tool with images and files above 20MB (=> not inline base64 used, but ...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...