validate method
Validate the accessToken
retrieved via the OAuth process.
For more information, please read the link below: https://dev.twitch.tv/docs/authentication#validating-requests
Implementation
@override
Future<HttpResult<AuthValidateResponse>> validate(
{required String accessToken}) async {
return await client.makeGet<AuthValidateResponse>(
TwitchAuthenticationConstants.validateEndpoint,
bearerToken: accessToken,
convertBodyFunc: (response) =>
AuthValidateResponse.fromHttpResponse(response.body),
);
}