Get Fernet instance using encryption key from settings
()
| 51 | |
| 52 | @lru_cache |
| 53 | def get_fernet() -> Fernet: |
| 54 | """Get Fernet instance using encryption key from settings""" |
| 55 | settings = get_settings() |
| 56 | return Fernet(settings.encryption_key) |
| 57 | |
| 58 | |
| 59 | class User(Base): |
no test coverage detected