Guide to Astra's SDK
A UserIntent manages the lifecycle of the creation of a User, before that User has been fully created. A User is created when an end-user authenticates through Astra's SDK. When an end-user authorizes Astra, your client will ultimately end up with an access_token, which grants your application the ability to make money movements on their behalf.
When a UserIntent is submitted to Astra, a UserIntent status is returned. When an end-user authenticates via Astra, their User profile is created, which inherits the status of their UserIntent. In order to successfully onboard your end-users, you must know the following three things:
- Does a UserIntent for this end-user exist?
- If yes, what is the status of their UserIntent?
- If their UserIntent status is
converted_to_user, do they have anaccess_token?
The following guide is meant to address questions regarding how to manage Users and UserIntents of varying statuses relative to the different OAuth flows our SDK provides.