Okay found the issue. I was doing DB query in between to pull some data when user is register. I had to create additional init function for SuperTokens that runs in the middleware.
If someone has better suggestions I am all ears. We pull data from db and 3rd party API on registration and from Db on login