https://supertokens.com/ logo
Title
t

Tobbe

11/05/2022, 12:55 PM
I'm getting "Something went wrong. Please try again" when I try to login. Both social logins and email/pw give the same error. Is there anywhere I can get more information about what's wrong?
I'm using "supertokens-auth-react": "0.24.8" and "supertokens-node": "11.0.1" I know there are newer versions available, but I'd rather get it working with the version I have first, if possible, and then update once it's working
r

rp

11/05/2022, 4:15 PM
Have. Do you have any logging on the backend api layer that prints out an error stack?
t

Tobbe

11/05/2022, 5:29 PM
I'm not getting any logging at all on the backend
This is my config for the backend if that helps
export const config = {
  framework: 'awsLambda',
  isInServerlessEnv: true,
  appInfo: {
    apiDomain,
    websiteDomain,
    appName: 'SuperTokens Test',
    websiteBasePath: '/supertokens',
    apiBasePath,
  },
  supertokens: {
    connectionURI: process.env.SUPERTOKENS_CONNECTION_URI,
  },
  recipeList: [
    ThirdPartyEmailPassword.init({
      providers: [
        Google({
          clientId: process.env.SUPERTOKENS_GOOGLE_CLIENT_ID,
          clientSecret: process.env.SUPERTOKENS_GOOGLE_CLIENT_SECRET,
        }),
        Github({
          clientId: process.env.SUPERTOKENS_GITHUB_CLIENT_ID,
          clientSecret: process.env.SUPERTOKENS_GITHUB_CLIENT_SECRET,
        }),
        Apple({
          clientId: process.env.SUPERTOKENS_APPLE_CLIENT_ID,
          clientSecret: {
            keyId: process.env.SUPERTOKENS_APPLE_SECRET_KEY_ID,
            privateKey: process.env.SUPERTOKENS_APPLE_SECRET_PRIVATE_KEY,
            teamId: process.env.SUPERTOKENS_APPLE_SECRET_TEAM_ID,
          },
        }),
      ],
    }),
    Sessions.init({
      jwt: { enable: true, ...jwksIssuerUrl },
    }),
  ],
}
And this is the function on the backend that should handle the auth stuff
import SuperTokens from 'supertokens-node'
import { middleware } from 'supertokens-node/framework/awsLambda'

import { config } from '../lib/supertokens'

SuperTokens.init(config)

export const handler = middleware()
It was just an env var that was misconfigured 🙂 All good now!
r

rp

11/06/2022, 5:30 AM
Ah ok!