SessionIntegration
Warning
You need to install dependencies to use The Session Integration.
$ pip install authx_extra
SessionIntegration(store, session_id, session_save)
PARAMETER | DESCRIPTION |
store | |
session_id | |
session_save | |
Source code in .venv/lib/python3.9/site-packages/authx_extra/session.py
| def __init__(self, store, session_id, session_save):
self.session_store = store
self.session_id = session_id
self.session_save = session_save
|
Get the session store.
Source code in .venv/lib/python3.9/site-packages/authx_extra/session.py
| async def get_session(self):
"""Get the session store."""
return self.session_store
|
Clear the session store.
Source code in .venv/lib/python3.9/site-packages/authx_extra/session.py
| async def clear_session(self):
"""Clear the session store."""
self.session_store.clear()
|
Get the session ID.
Source code in .venv/lib/python3.9/site-packages/authx_extra/session.py
| async def get_session_id(self):
"""Get the session ID."""
return self.session_id
|
Save the session store.
Source code in .venv/lib/python3.9/site-packages/authx_extra/session.py
| async def save_session(self):
"""Save the session store."""
await self.session_save()
|