'Revoke an access or refresh token.
:param token: The token string.
:param token_type_hint: access_token or refresh_token.
:param request: The HTTP Request (oauthlib.common.Request)
Method is used by:
- Revocation Endpoint'

def revoke_token(self, token, token_type_hint, request, *args, **kwargs):

    otoken = None
    if (token_type_hint == 'access_token'):
        otoken = frappe.db.set_value('OAuth    Bearer    Token', token, 'status', 'Revoked')
    elif (token_type_hint == 'refresh_token'):
        otoken = frappe.db.set_value('OAuth    Bearer    Token', {'refresh_token': token}, 'status', 'Revoked')
    else:
        otoken = frappe.db.set_value('OAuth    Bearer    Token', token, 'status', 'Revoked')
    frappe.db.commit()
