Hi, we want certain details to be stored for user request, which is better place to store? metadata or accessPayload. Where is the data stored in both cases (in form token or retrived by api call)
r
rp_st
12/26/2023, 8:41 AM
hey @trinadh_95306
rp_st
12/26/2023, 8:41 AM
access token payload is in the session's access token. Metadata is stored in the db
rp_st
12/26/2023, 8:42 AM
how often do you want to access this information? If it's very often, and for most APIs, then it's better to put in the access token payload since it deosn't require a db call to fetch that info
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).