K
Kinde•3mo ago
--=ASTRO=--

How can I generate API keys for my users to use programmatically?

Hello, I'm evaluating Kinde for a developer focused SaaS product in which users will mostly (except for billing, etc) interact with the product through a REST API. I searched through the docs, but couldn't find a solution for such a use case. Maybe I've missed it, but is such a use-case supported by Kinde?
3 Replies
onderay
onderay•3mo ago
Currently, Kinde doesn't have a simple way for you to tie a particular user to a particular API/M2M token. We do hear about this, and the team is considering building the functionality in the near term. Would you also want roles and/or permissions in the token? There is a way around it currently, but you would need to build the logic on your end to associate a user to a particular M2M token.
--=ASTRO=--
--=ASTRO=--•3mo ago
Thanks. I guess an easier? solution might be to just implement that in my own application, and store it in my own DB I'm not sure if it's best practice to do that though 🤔
onderay
onderay•3mo ago
It would allow you to get to a solution sooner, but would need to make sure your connection to your DB is super secure