https://supertokens.com/ logo
with nextjs
l

Luxaaa

05/08/2023, 12:24 PM
Hi, can i use supertokens with NextJS?
r

rp

05/08/2023, 12:42 PM
hey @Luxaaa - yes you can. We currently only support pages directory though, and have an integration guide for the same
l

Luxaaa

05/08/2023, 2:09 PM
@rp Ok, thanks. Refering to this documentation: https://supertokens.com/docs/thirdpartyemailpassword/nextjs/init: can i also have a public section in my app? Or do i have to include the SupertokensWrapper in any page.getLayout function?
r

rp

05/08/2023, 2:14 PM
Wrapping the app with supertokensWrapper allows you to have public sectors in your app. Only the SessionAuth wrapper enforces that the user should be logged in
l

Luxaaa

05/08/2023, 2:50 PM
okay, thanks