Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.05 KB

File metadata and controls

37 lines (28 loc) · 1.05 KB

Session

Properties

Name Type Description Notes
id str [optional]
expires_at datetime
token str
created_at datetime
updated_at datetime
ip_address str [optional]
user_agent str [optional]
user_id str
impersonated_by str [optional]

Example

from better_auth.models.session import Session

# TODO update the JSON string below
json = "{}"
# create an instance of Session from a JSON string
session_instance = Session.from_json(json)
# print the JSON string representation of the object
print(Session.to_json())

# convert the object into a dict
session_dict = session_instance.to_dict()
# create an instance of Session from a dict
session_from_dict = Session.from_dict(session_dict)

[Back to Model list] [Back to API list] [Back to README]