(self, code, client)
| 83 | |
| 84 | class CodeGrantMixin: |
| 85 | def query_authorization_code(self, code, client): |
| 86 | item = AuthorizationCode.query.filter_by( |
| 87 | code=code, client_id=client.client_id |
| 88 | ).first() |
| 89 | if item and not item.is_expired(): |
| 90 | return item |
| 91 | |
| 92 | def delete_authorization_code(self, authorization_code): |
| 93 | db.session.delete(authorization_code) |
nothing calls this directly
no test coverage detected