'Deletes an authorization code after its use per section 4.1.2.
http://tools.ietf.org/html/rfc6749#section-4.1.2
:param code: The authorization code.'

def delete_code(self, code):

    orm_code = self.db.query(orm.OAuthCode).filter((orm.OAuthCode.code == code)).first()
    if (orm_code is not None):
        self.db.delete(orm_code)
        self.db.commit()
