validateToken method
- Credentials creds
Validates the authorization token of the provided Credentials.
Authentication
Mandatory.
Implementation
Future<ValidateToken$Query> validateToken(Credentials creds) async {
Log.debug('validateToken($creds)', '$runtimeType');
final QueryResult res = await client.mutate(
MutationOptions(
operationName: 'ValidateToken',
document: ValidateTokenQuery().document,
),
raw: RawClientOptions(creds.access.secret),
);
return ValidateToken$Query.fromJson(res.data!);
}