If your goal is to create a new user, use user agent oauth instead of doing everything manually. The manual auth should mostly be used for user already logged in.
user-agent flow will handle that for you (don’t forget to activate offline_access). Be sure also to trigger backend WF or recurring WF when the user is logged in first.
However, if you need to access API when another user is logged in (for example: you need to display calendar of user A to user B), at this moment you need to use manual process.
Other reasons to use manual process:
A) oauth2 doesn’t return an email or this email is in nested JSON
B) you need to allow single user to access to mutiple API that use oauth2 authorization code (user-agent) flow
If you need to use manual process, you should use Bubble auth first and add API auth info to this user (better to use a related DB… make sure to set privacy rules correctly)
Yes this is possible to create a new user in manual process, but this is a lot more complex because you need to generate a password and use backend WF to keep everything safe…