checkToken method

Future<Map<String, dynamic>> checkToken(
  1. String? token
)

Checks whether a given jwt token still represents a valid session in Kuzzle.

Implementation

Future<Map<String, dynamic>> checkToken(String? token) async {
  final response = await kuzzle.query(
      KuzzleRequest(
          controller: name,
          action: 'checkToken',
          body: <String, dynamic>{'token': token}),
      queueable: false);

  return response.result as Map<String, dynamic>;
}