https://supertokens.com/ logo
Title
c

Chunkygoo

10/17/2022, 7:17 AM
How do I hide everything else when I'm on the /auth/callback/google page?
r

rp

10/17/2022, 7:18 AM
hey
checkout the react component override section in the docs
c

Chunkygoo

10/17/2022, 7:18 AM
Essentially I do not want the header/footer to be displayed
r

rp

10/17/2022, 7:18 AM
the header and footer are something that you control. So that you will have to hide based on the path
the loading UI that we give, you can override and change it to what you like
c

Chunkygoo

10/17/2022, 7:19 AM
Yes
Im using nextjs
usually you can hide conditionally with this
`if ([
/auth/callback/google
].includes(appProps.router.pathname)) { return ; }`
But for some reason it's not detecting that path
r

rp

10/17/2022, 7:20 AM
im not too sure. This is more of a nextjs / react issue
c

Chunkygoo

10/17/2022, 7:20 AM
I think it's because the /auth/callback/google path is not under page?
r

rp

10/17/2022, 7:21 AM
you can always detcect this path in the header / footer component that you have made and render
null
c

Chunkygoo

10/17/2022, 7:23 AM
hmm let me try that
Turns out it needs to be this
`if ([
/auth/[[...path]]
].includes(appProps.router.pathname))`
r

rp

10/17/2022, 7:27 AM
hmm ok
c

Chunkygoo

10/17/2022, 7:27 AM
Thanks
is there a difference between signOut in session and signOut in thirdpartyemailpassword?
r

rp

10/17/2022, 7:56 AM
not really. I think the signOut in thirdpartyemailpassword was removed in the recent relase.
You can use either