The Session object
Tokens is an open session: the access token, the refresh token that rotates on use, and the device the session is bound to.
Attributes
access_tokenstringRequireddevice_idstringRequiredExample dev_2tVh8nqLxq4GbDe0K1F6S9zRcWm
expires_inintegerRequiredSeconds until the access token expires
is_known_devicebooleanRequiredThe device was seen before and is trusted
refresh_tokenstringRequiredsession_idstringRequiredExample sess_2tVh8nqLxq4GbDe0K1F6S9zRcWm
token_typestringRequiredBearer
userobjectRequiredUser is a customer login.
8 child attributes
created_atstring · date-timeRequiredcustomer_boundbooleanRequiredcustomer_idstringOptionalExample cust_2tVh8nqLxq4GbDe0K1F6S9zRcWm
emailstringRequiredhas_pinbooleanRequiredidstringRequiredExample user_2tVh8nqLxq4GbDe0K1F6S9zRcWm
locked_untilstring · date-time or nullOptionalSet while the login is locked after failed attempts
statusstringRequiredActive, locked, closed