check method

Future<bool> check(
  1. String token
)

Checks if a token is valid

token The token to check Returns true if token is valid

Implementation

Future<bool> check(String token) async {
  try {
    await driver.verifyToken(token);
    return true;
  } catch (e) {
    return false;
  }
}