Method RefreshOAuthToken
RefreshOAuthToken(String, String, String, String, String[])
Refreshes an existing OAuth token.
Declaration
public System.Threading.Tasks.Task<Den.Dev.Grunt.Models.Security.OAuthToken?> RefreshOAuthToken (string clientId, string refreshToken, string redirectUrl, string clientSecret = "", string[]? scopes = default);
Parameters
Type | Name | Description |
---|---|---|
System.String | clientId | Client ID defined for the registered application in the Azure Portal. |
System.String | refreshToken | Refresh token obtained from a previous authorization flow. |
System.String | redirectUrl | Redirect URL defined for the registered application in the Azure Portal. |
System.String | clientSecret | Client secret defined for the registered application in the Azure Portal. |
System.String[] | scopes | A list of scopes used for authentication against the Xbox Live APIs. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<OAuthToken> | If successful, returns an instance of OAuthToken representing the OAuth token used for authentication. Otherwise, returns null. |