BP Function: Refresh API Token
C++ Impl | UNBSSRefreshAPITokenAction |
---|
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 Info
API Token Info
Token to refresh
-
Client ID
String
Your SubscribeStar app
client_id
. -
Client Secrent
String
Your SubscribeStar 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 Action
This 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 Info
should 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 SubscribeStar again, etc.
Token Info
will be invalid and should not be used! -
Token Info
API Token Info
The new API access token.
For any questions, help, suggestions or feature requests, please feel free to contact me at nbpsup@gmail.com