Just a question, is it normal for the core to be calling the
/recipe/user?userId={user_id}
endpoint 6 times for every
verify_session
call? I turned on the debug logs and noticed that the same call is being made multiple times each time. This is for the middleware for a normal API call that queries SuperTokens and populates the user object.
r
rp_st
12/24/2023, 2:12 PM
Hey. This is certainly not normal. Have you enabled email verification in required mode?
rp_st
12/24/2023, 2:13 PM
This can happen when the email verification status in the access token needs to be resynced with the db cause it’s too old. So it should happen once every 10 mins or so but not all the time
rp_st
12/24/2023, 2:15 PM
And which recipes have you initialised on the backend? Cause even then, calling that api six times is strange. It should call me max 2-3 times.
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).