KindeK
Kinde3y ago
10 replies
Martin

https://kinde.com/pricing/ M2M tokens question

Can I please double check my understanding of your pricing? The Kinde pricing page says that 2000 M2M tokens are included for free. Is an M2M token consumed every time I call the /oauth2/token Kinde API endpoint to retrieve an M2M Access Token?

If so, can you help me understand how to use and validate the ID Token (https://kinde.com/docs/build/about-id-tokens/) ? I'm already passing the Access Token to my REST API through the "authorization" HTTP header. However, this token doesn't contain the user's email address (https://kinde.com/docs/build/about-access-tokens/) and so on every REST API call I'm currently getting a M2M token and calling the Kinde API to get the user object to get their email address. The ID token includes the user's email address (https://kinde.com/docs/build/about-id-tokens/) but I can't see any example in your docs of the recommended way of passing this token through to a REST API and validate serverside that the ID token is valid.

Is there any way of tracking how many M2M tokens which I have consumed so far? The billing page doesn't show any M2M token usage, but I don't know if that's because I'm within the free limit?
Screenshot_2023-11-29_at_16.18.27.png
Kinde Docs
Our developer tools provide everything you need to get started with Kinde.
ID tokens - Build on Kinde - Help center
Kinde Docs
Our developer tools provide everything you need to get started with Kinde.
Access tokens - Build on Kinde - Help center
Was this page helpful?