Session metadata allows the storage of customizable keys and values (maximum 255 characters each) in an Auth0 user session.Use cases for session metadata include:
Track device information, such as device name or login location
Store session-level flags, for example, user_accepted_terms
Share state between multiple Actions in the same flow
Drive conditional logic for logout or token issuance
Auth0 Session Metadata is not a secure data store and should not be used to store sensitive information. This includes secrets and high-risk PII like social security numbers or credit card numbers, etc. Auth0 customers are strongly encouraged to evaluate the data stored in metadata and only store that which is necessary for identity and access management purposes. To learn more, read Auth0 General Data Protection Regulation Compliance.