- @override
Deletes a AuthToken
by its issuing AuthCode
.
The server
will call this method when a request tries to exchange an already exchanged AuthCode
.
This method must delete the AuthToken
that was previously acquired by exchanging authCode
- this means
that the storage performed by this type must track the issuing AuthCode
for an AuthToken
if there was one.
Any storage for authCode
can also be removed as well.
Source
@override Future revokeTokenIssuedFromCode(AuthServer server, AuthCode code) { var query = new Query<ManagedToken>(context)..where.code = code.code; return query.delete(); }