dynamic revokeTokenIssuedFromCode(AuthServer server, AuthCode authCode)

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

FutureOr revokeTokenIssuedFromCode(AuthServer server, AuthCode authCode);