There is one more thing, in the frontend if I stay...
# general
h
There is one more thing, in the frontend if I stayed idle for some time (couple of seconds), after certain amount of time my API will throw error UNKNOWN_USER_ID, on verifySession(). By staying idle I mean, not sending any req to backend. Does this happen because access token validity is 60 second by default and I am not handling expiration of access tokens?
r
hey @hehohesda_12345 are you using email verification recipe in required mode on the backend?
h
Yes I am using that. I am using ThirdPartyEmailPassword, but I am only utilizing third party providers only(google) for now.
supertokens.init({ framework: "express", supertokens: { connectionURI: process.env.SUPERTOKENS_CORE_CONNECTION_URI, apiKey: process.env.SUPERTOKENS_CORE_API_KEY, }, appInfo: { appName: "", apiDomain: process.env.API_DOMAIN, websiteDomain: process.env.CLIENT_ORIGIN_URL, apiBasePath: "/api/auth", websiteBasePath: "/auth", }, recipeList: [ ThirdPartyEmailPassword.init({}), Emailverification.init({ mode: "REQUIRED", }), Session.init(), ], }); This is the config in API
r
right. And the session is being created for a user that does not exist in supertokens?
h
No, That never happened with me. Any ways I have set it to optional mode and now its working fine. Also I wanted to know if I am only utilizing social logins in ThirdPartyEmailPassword, everything will work fine? I my implment my own login password in the future so I am using this recipe for now.
r
Yes. You should just disable the email password related APIs
h
Thank you