isValidJWT static method

bool isValidJWT(
  1. String value
)

Implementation

static bool isValidJWT(String value) {
  return RegExp(r'^[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*$')
      .hasMatch(value);
}