I'm getting this message all of a sudden, don't kn...
# support-questions-legacy
f
I'm getting this message all of a sudden, don't know where to debug:
Copy code
error - unhandledRejection: Error: Initialisation not done. Did you forget to call the SuperTokens.init function?
r
hey! Are you using server side rendering?
f
well, it's a "checkout session" for stripe. So, I guess yes. This has been working all along. This is the code in the script
Copy code
// get logged in buyer(current access token)
  await superTokensNextWrapper(
    async (next) => {
      await verifySession()(req, res, next);
    },
    req,
    res
  );
  const currentAccessTokenPayload = req.session.getAccessTokenPayload();
...that I think is throwing the error
the user IS logged in
r
Did you call supertokens.init on this API route?
f
I'm re-logging in
r
okay
f
ah, nm, I guess something got screwy. Re-logging in got rid of the error. Sorry to bother
6 Views