Hi guys, I just started implementing SuperTokens for my NextJS project using app router.
I followed the NextJS App Router docs (https://supertokens.com/docs/emailpassword/nextjs/app-directory/about) , but noticed there was one thing missing. Actually enabling the admin dashboard.
So I just followed the general docs and added the
Dashboard.init()
to my
backendConfig
.
But when I now visit
http://localhost:3000/api/auth/dashboard
, I can't see the dashboard and just get a 404.
Has anyone successfully set this up before?
I have enabled them, but nothing gets logged.
Just realized the
backendConfig
isn't actually used anywhere in my code atm haha
r
rp_st
02/08/2024, 3:59 PM
haha.. well then.. thats the issue
n
noahnetting
02/08/2024, 4:03 PM
Okay bruh totally my mistake.
I wanted to do my own custom UI.
So I only did step 1 in the NextJS docs. (Because step2 was already about using the prebuilt UI)
I though I could just access my dashboard after finishing the configuration step.
I now skipped step 2 and just did step 3.
Now I can access it 👍
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).