What's the best way to manage users (updating user information, resetting passwords) when there are ...
g
What's the best way to manage users (updating user information, resetting passwords) when there are many users? The dashboard doesn't appear to support search and we can't page through 1000s of users…
r
Hey. What’s the version of the backend SDK that you are using? We do have search on the dashboard via email, phone number, social provider
g
Ah, interesting OK! We're on 13.1.2 right now
r
search was introduced in version 13.4.0. You can just upgrade to that, it's not a breaking change. The other thing thats required is that the core has to be of version >= 4.6.0, which we can update for you (once again, not a breaking change)
g
Nice, OK 👍
Is there a particular order we should do things in? (When you say "core", I'm assuming you mean the server-side code you're running for us, right?)
r
yea, the managed core thats running on ouor infra
update the core first, then the backend SDK is usually whats recommended.
g
Alright, well if the core update is non-breaking also, feel free to do that whenever and we'll follow-up with an update to the node package
r
sounds good. You will have to email us from your registered email ID though.
g
@rp_st It looks like there's an issue upgrading supertokens-node: - Authenticating to the prod dashboard is still working - Authenticating to a dev-mode dashboard is still working (using
supertokens-node@13.1.2
) - Authenticating to a dev-mode dashboard in a preview app is not working (using
supertokens-node@13.4.2
)
r
When you say not working, what are you observing?
g
Ah, yeah that's a key detail 🙃 - Request is
POST /api/auth/dashboard/api/key/validate
- This includes a
Bearer API_KEY
header as expected - 401 response with
{"message":"Unauthorised access"}
as the body
r
have you done dashboard.init in the recipe list with an API key?
or do you use email password login to access the dashboard?
g
The former – I'd be interested in email/password though as it seems easier to manage security
r
i think if you remove the api key part, and just do dashboard.init on the backend, it will show you the email password login UI
as to why the api key method stopped working, @nkshah2 can help when he is available.
g
In case it's useful, I'll include examples of successful and failed requests:
r
Thanks. Will wait for @nkshah2 to help. Did the email password method work though?
g
It did!
r
Great.
n
Hey @goodgravy There was a bug with the API key based login in the Node SDK that would result in this behaviour. It was fixed in 14.0.1, if you do want to use an API key for the dashboard you'll have to upgrade
g
Hey @nkshah2 thanks for the heads-up! We're happy with email/password for now.
Confirming that we now have search on the dashboard, thanks everyone
n
Awesome!
3 Views