BP Function: Refresh API Token
| C++ Impl | URefreshAPITokenAsyncAction |
|---|
If an access token expires, this node can be used to handle the token refresh process and obtain
a new access token without requiring the user to login again. This requires that you have saved the Refresh Token which was
obtained along with the original access token.
Inputs
-
Token InfoAPI Token InfoToken to refresh
-
Client IDStringYour Patreon app
client_id. -
Client secretStringYour Patreon app
client_secret.
Outputs
-
Main Execution Pin (at the top)
Execution will immediately continue from this pin while the authentication process continues in the background. Do not use execution flowing from this pin to check for the results, they aren't ready yet!
-
Async ActionThis is a reference to the action running in the background. You can use this to cancel the async action if you decide you actually don't need the results before it has completed.
-
On Complete
When the refresh process has been completed successfully, execution will flow from this pin.
Token Infoshould be valid and can be used at this point. -
On Fail
If the authentication process fails for any reason, execution will flow from this pin. You can use this to display an error to the user, prompt them to login to Patreon again, etc.
Token Infowill be invalid and should not be used! -
Token InfoAPI Token InfoThe new API access token.
For any questions, help, suggestions or feature requests, please feel free to contact me at nbpsup@gmail.com