findByTokenHash method
The grant whose token hashes to tokenHash, or null.
Implementation
@override
Future<Grant?> findByTokenHash(String tokenHash) async {
for (final grant in _grants.values) {
if (grant.tokenHash == tokenHash) return grant;
}
return null;
}