gws.base.auth.session
¶
Source code: gws.base.auth.session
Module Contents¶
- class gws.base.auth.session.Object(uid: str, user: gws.User, method: gws.AuthMethod | None, data: dict = None, created: datetime.datetime = None, updated: datetime.datetime = None, is_changed=True)¶
Bases:
gws.AuthSession
Authentication session.
- get(key, default=None)¶
Get a session data value.
- Parameters:
key – Value name.
default – Default value.
- Returns:
A value or the default.
- set(key, val)¶
Set a session data value.
- Parameters:
key – Value name.
value – A value.