logout method

  1. @override
Future<void> logout(
  1. String jwt
)
override

Implementation

@override
Future<void> logout(String jwt) async {
  var res = JWT.tryVerify(jwt, app.authSettings.jwtSecretKey);
  if (res == null) {
    throw ProvidedJwtNotValid(2);
  }
  // String id = res.payload[ModelFields.id];
  // var activeJWTs = dbService.mongoDbController
  //     .collection(app.authSettings.activeJWTCollName);
  // var selector = where.eq(DbFields.id, id);
  // var update = modify;
  //! here search how to delete a value from a list in the mongo db(to delete the current jwt only from the activeJWTs)
  throw UnimplementedError();
}