rasenmaeher_api.db.logincodes
DB abstraction for storing nonces etc things needed to prevent re-use of certain tokens
Module Contents
Classes
Track the login codes that can be exchanged for session JWTs |
Attributes
- class LoginCode[source]
Bases:
rasenmaeher_api.db.base.ORMBaseModel
Track the login codes that can be exchanged for session JWTs
- async classmethod use_code(code, auditmeta=None)[source]
Exchange the code for JWT, if it was already used raise error that is also 403, return JWT with the claims