PARTH
KKinde
•Created by PARTH on 6/5/2025 in #💻┃support
Not able to create/read environment variable using management API
I'm trying to create an environment variable using management api:
import { EnvironmentVariables } from '@kinde/management-api-js';
I've set all the scopes related to environment variables in M2M application already. Though whenever I try to read/create environment variable I'm getting below error:
All other management APIs are working fine, only these environment variables related APIs are giving error
Help me why this error is occuring?7 replies
KKinde
•Created by PARTH on 6/5/2025 in #💻┃support
Set application properties in M2M token using management API
I've set the flow to create a backend application in Kinde when a user requests it using management API. At that time I'm also setting app properties with it because I want that property in my M2M token.
How to enable those properties to reflect in my M2M token with management API?
https://docs.kinde.com/properties/work-with-properties/properties-in-tokens/
As defined in the above link, I have to do it from my dashboard, but I want to do it using management APIs?
10 replies
KKinde
•Created by PARTH on 5/28/2025 in #💻┃support
Revoke assigned tokens for particular audience
For an application I've created multiple APIs with different audiences. Now I've generated some access tokens using different audience in request. Now I want to revoke all the assigned token from a particular audience and when that token is passed to authenticate it should deny. How can I do that?
4 replies
KKinde
•Created by PARTH on 5/27/2025 in #💻┃support
Getting "Unauthorized - invalid credentials."
Everytime while making Kinde api call, I'm getting "Unauthorized - invalid credentials."
I'm also velidating my token using
validateToken()
method from @kinde/management-api-js
package, though my token is valid now it's returning error: "Unauthorized - invalid credentials."7 replies
KKinde
•Created by PARTH on 5/21/2025 in #💻┃support
Get request body data in workflow
Hello,
I'm creating a workflow for M2MTokenGenerate event. When I make a call to the /oauth2/token endpoint, I'm also sending some data in the body, which I want in the generated M2M token. Can I get that data from the api in that workflow function parameters?
What I want is when my server is calling the API to get M2M token, I want a token with custom claims org_id and project_id which I'm sending in the request. Can I get that in the workflow function or not?
10 replies