does the session.getUserId() function get the user id from the cookie, or does it make a DB call?
r
rp_st
04/11/2023, 5:10 AM
The
session.getUserId()
function gets the user ID from the session object, which is stored in memory or cache. The session object is formed based on the access token's payload. It does not make a DB call.
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).