Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.31 KB

File metadata and controls

41 lines (32 loc) · 1.31 KB

User

Properties

Name Type Description Notes
id str [optional]
name str
email str
email_verified bool [optional] [readonly] [default to False]
image str [optional]
created_at datetime
updated_at datetime
two_factor_enabled bool [optional] [readonly] [default to False]
role str [optional] [readonly]
banned bool [optional] [readonly] [default to False]
ban_reason str [optional] [readonly]
ban_expires datetime [optional] [readonly]
stripe_customer_id str [optional]

Example

from better_auth.models.user import User

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

# convert the object into a dict
user_dict = user_instance.to_dict()
# create an instance of User from a dict
user_from_dict = User.from_dict(user_dict)

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