Hi Guys, I'm still having this undefined err, can...
# support-questions
e
Hi Guys, I'm still having this undefined err, can't figure out why In my other apps we have the same flow, and it works 1. init in
_app.tsx
(nextjs app)
Copy code
js
if (typeof window !== 'undefined') {
  supertokens.init({
    ...frontendConfig().appInfo,
  })
}
In our
Layout
component we initialize the user, by running a effect (which is client side) to
getUser()
in our zustand store
r
hey! How have you imported doesSessionExist?
e
import { doesSessionExist } from 'supertokens-website'
weird part is that exactly the same code, in other app, all works oké
r
are you sure that you are calling supertokens.init before?
e
ye 100%
r
hmm
Can you show me more of your code? Perhaps the whole component?
or mayeb you could upload to github and share access
Hm.. Can you try:
Copy code
import SuperTokens from 'supertokens-website'
And then do:
Copy code
SuperTokens.doesSessionExist()
Instead
e
same err
r
Can we get on a quick call?
e
Yeah, sure
I guess
Wait let me downgrade for a sec
Maybe i know whats going on
r
hmm ok
e
ah nvm got it wrong
ye if we can call, much appreciate 😄
@EdwinN1337 we have released the new version of supertokens-auth-react.
e
hey, we are using supertokens-website
r
Ah right. The latest version of that too is updated. You can use that