CABZZ
KKinde
•Created by CABZZ on 4/10/2024 in #💻┃support
NextJS Kinde Management API troubles
Ah cool, ill check it out when i have the time. The feature I was working on was cancelled so dont need it anymore really 😅
13 replies
KKinde
•Created by CABZZ on 4/10/2024 in #💻┃support
NextJS Kinde Management API troubles
@viv (kinde) 😄
13 replies
KKinde
•Created by CABZZ on 4/10/2024 in #💻┃support
NextJS Kinde Management API troubles
The getUserData function is a function from the @kinde-oss/kinde-auth-nextjs package, its not my own. It's Kinde code...
And no these methods would not resolve the issue
13 replies
KKinde
•Created by CABZZ on 4/10/2024 in #💻┃support
NextJS Kinde Management API troubles
@viv (kinde) alright so what I am trying to do is use a webhook from brevo, an external application. Brevo sends a request to my nextjs application api endpoint on /api/brevo/webhook/[id].
When handling this request I need to look up some information from a Kinde user, this is why I wanted to use the management api, to get that information.
So I believe there is no place where I am getting a access token. The code I have send in my original post is all I got related to Kinde.
I hope that clarifies my previous question.
13 replies
KKinde
•Created by CABZZ on 4/10/2024 in #💻┃support
NextJS Kinde Management API troubles
@viv (kinde) I'm not sure I understand where to set the audience in the request.
Also, would it matter I do this in an endpoint? so there is no user authenticated.
13 replies
KKinde
•Created by CABZZ on 4/10/2024 in #💻┃support
NextJS Kinde Management API troubles
@viv (kinde)
1. .env file contains the following props: KINDE_CLIENT_ID, KINDE_CLIENT_SECRET, KINDE_ISSUER_URL, KINDE_POST_LOGIN_REDIRECT_URL, KINDE_POST_LOGOUT_REDIRECT_URL, KINDE_SITE_URL
2. Yes.
3. I am not familiar with KINDE_AUDIENCE. Is it in the docs?
4. createKindeManagementAPIClient is returning what I expect but the getUsersData isn't
5. I use the latest version of the package 2.2.3
13 replies