MCPcopy Index your code
hub / github.com/hunvreus/devpush / get_fernet

Function get_fernet

app/models.py:53–56  ·  view source on GitHub ↗

Get Fernet instance using encryption key from settings

()

Source from the content-addressed store, hash-verified

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

Callers 5

access_tokenMethod · 0.85
refresh_tokenMethod · 0.85
tokenMethod · 0.85
env_varsMethod · 0.85
env_varsMethod · 0.85

Calls 1

get_settingsFunction · 0.90

Tested by

no test coverage detected