New user. Attempting to create a passwordless magic link appliation using NextJs. I have it work...
s
New user. Attempting to create a passwordless magic link appliation using NextJs. I have it working OK on the front end. And currently have it connected to the managed backend - where I can see my test users, etc. However, my use case it not to let user sign up - they need to be invited my the admin by manually sending them the magic link. I can see no option to do that in the managed dashboard - seems very limited. So I create a Docker container with SuperTokens and Postgress, and can get it running. However, I can't seem to access the dashboad at all. Documenation here is sparse, and I am not sure how debug what is going wrong.
r
Hey.
Our dashboard on supertokens.com is only meant for core config management and billing
Using a self hosted core won’t make a diff in terms of features
It’s all done via code and our SDKs
Finally, we have a user management dashboard as well: https://supertokens.com/docs/passwordless/pre-built-ui/setup/dashboard
s
Ah. That makes sense. My app is very small scale hobby project for my golf club - not commercial, and not going to be used a lot. So the managed system is likely to be good enough. I'll read the guides and work out how to generate the invites. Thanks for your help. You documentation is excellent - but so extensive that is can be a little intense trying to find things. Very impressed so far with SuperTokens.
r
Fair enough. Thanks for the feedback. Any recommendations on how we can make things easier?
s
Not really - I got eveything working really fast. Probably me just getting confused by the different backend options and trying to work out what is best. Your fast response have got me back on track. Many thanks.
Once more quick question. Is it essential or recommeneded to have 2 separate code bases for the front and backend apps? I'll dive into the docs more now - but it would be good to know up front. I think what is confusing me is that all the way through I see code and confiration for React/NextJS - then I hit the docs for the backend and everything is headed up Node.js in the examples.
r
Well, the NextJS api layer uses our node SDK.
So the nodejs code snippets can be applied to the next api layer
s
I figured that might be possible. Thanks again.
Do I used the same port number for the dashboard as for the main app? If I do that, I get bounced to the normal user page if I try to go to http://localhost:3000/auth/dashboard - and other ports go nowhere - nothing running there because I've not set anything up. Doc might explain more when I've had a chance to read more.
I just put the Dashboard.init() in with my existing code recipies.
r
Isn’t the api base path supposed to be /api/auth?
Cause NextJS api needs to have a /api prefix
s
Ah - probably my mistake. The main app is running fine, so I'll go back and make sure this backend setup is correct.
Thanks
Excellent. Well spotted. Working fine now.
I spent hours on that - figured I needed to self host and spent hours getting Docker containers set up. Great support.
I should have asked for help sooner.
r
Happy to help 🙂
s
This screen. I did get there before much earlier. But assumed that dashboard was not what I wanted. I could not see the link was only clicking on the email address to access the user. I know this is beta, so maybe my feed back will be useful. But clicking on an email address on a web page usually triggers user's email client, so I avoid that at all costs - hence not being able to drill down to the real info. And the "Auth method" highlight looks a bit like a button, so you waste time trying that. Maybe consider something my obvious as a link / button / whatever.
But lots of stuff for me to play with now I can get to the users. Again, thanks.
r
thanks for the feedback 🙂