removeClient method Null safety
- AuthServer server,
- String clientID
override
Removes an AuthClient for a client ID.
This method must delete the AuthClient for clientID
. Subsequent requests to this
instance for getClient must return null after this method completes. If there is no
matching clientID
, this method may choose whether to throw an exception or fail silently.
server
is the AuthServer requesting the AuthClient.
Implementation
@override
Future removeClient(AuthServer server, String clientID) {
final query = Query<ManagedAuthClient>(context!)
..where((o) => o.id).equalTo(clientID);
return query.delete();
}