isBearer method

bool isBearer()

Checks if the token is a "Bearer" token

Implementation

bool isBearer() {
  return tokenType?.toLowerCase() == 'bearer';
}