getTokenInfo method
Returns an instance of OAuthApplicationTokenInfo
generated by this
credential.
Expired tokens are automatically regenerated while credentials remain valid.
Return Value: Returns the non-expired OAuth application token information generated by this credential.
Implementation
Future<OAuthApplicationTokenInfo> getTokenInfo() {
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_OAuthApplicationCredential_getTokenInfoAsync(
_handle, errorHandler);
});
return taskHandle
.toFuture((element) => element.getValueAsOAuthApplicationTokenInfo()!);
}