How do I hide everything else when I'm on the /auth/callback/google page?
c
How do I hide everything else when I'm on the /auth/callback/google page?
r
hey
checkout the react component override section in the docs
c
Essentially I do not want the header/footer to be displayed
r
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
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
im not too sure. This is more of a nextjs / react issue
c
I think it's because the /auth/callback/google path is not under page?
r
you can always detcect this path in the header / footer component that you have made and render
null
c
hmm let me try that
Turns out it needs to be this
`if ([
/auth/[[...path]]
].includes(appProps.router.pathname))`
r
hmm ok
c
Thanks
is there a difference between signOut in session and signOut in thirdpartyemailpassword?
r
not really. I think the signOut in thirdpartyemailpassword was removed in the recent relase.
You can use either