K
KindeMrGreyKnight

Updating custom properties

Is there any additional documentation for than this section for using the management api through the nextjs-sdk (app router)? https://kinde.com/docs/developer-tools/nextjs-sdk/#kinde-management-api Just looking at it and can see additional methods, for example, client.usersApi.updateUserProperties but cannot seem to find any docs for the methods.
Kinde Docs
NextJS App Router SDK - Developer tools - Help center
Our developer tools provide everything you need to get started with Kinde.
M
MrGreyKnightβ€’16d ago
I initially assumed that it would match the api docs directly but the keys don't match according to the typescript inference. https://kinde.com/api/docs/#update-property-value-2
VK
viv (kinde)β€’16d ago
Hi @MrGreyKnight - there are a few additional notes here (https://kinde.com/docs/developer-tools/nextjs-sdk/#kinde-management-api) for using the management API, let me know if this helps / if there's something more specific you were looking for? Would you be able to clarify which keys in the typescript interface aren't matching in PATCH /api/v1/users/{user_id}/properties/{property_key}? Thank you πŸ˜€ !
Kinde Docs
NextJS App Router SDK - Developer tools - Help center
Our developer tools provide everything you need to get started with Kinde.
VK
viv (kinde)β€’16d ago
Just FYI - sorry for the trouble, we're also updating the properties API (there was a mismatch of PUT / PATCH endpoints) so that may also resolve any issues - it's currently in review but should be approved & merged shortly. Cheers!
A
Aboudβ€’14d ago
viv, quick follow-up... it seems that with custom properties, when a user is already logged in, and then the value of a custom property is updated in the console or via management api, and the user browser refreshes or calls the NextJS getAccessToken function, the custom property does not show the updated value. Instead, the user has to log back out (LogoutLink), and log in again, in order to see the updated value. Is there a fix for this?
OK
Oli - Kindeβ€’13d ago
Hey @Aboud, Great question in the latest versions of the NextJS SDK (v2.2.0+) you can use the getKindeServerSession().refreshTokens() method to refresh claims. FYI, the API endpoints for setting property values is now updated to reflect the correct API requests, see the following API endpoints: User - https://kinde.com/api/docs/#update-property-value - https://kinde.com/api/docs/#update-property-values Organization: - https://kinde.com/api/docs/#update-organization-property-value - https://kinde.com/api/docs/#update-organization-property-values
Want results from more Discord servers?
Add your server
More Posts
how long does it take for cert to be issued?Pretty much that, we see on dashboard that cert has been issued, but when we try testing login this Cors error on redirecthey there I'm getting cors error on signup redirect when users sign up, this doesn't happen in localNuxt, router.push("/api/login") raises 404 errorrouter.push("/api/login") redirect /api/login but it raises 404 error, however when I refresh the pAuth works in Development but not on Prodhey there, I keep getting this error: Invalid callback URL The callback URL provided is invalid. YouArchitecture idea for B2B2C appHi guys! Just integrated Kinde last week for my MVP, loving the product so far πŸ™ŒπŸ»πŸ™ŒπŸ» Just wantedManually fetch usernextjs sdk: Is it possible to fetch the user inside a function? Because on component mount, it's nultesting best practicesHey folks, Looking into Kinde the last days I am pretty confident I want to use it for my product. need access for kinde billing, please need urgenti need early access for kinde subcription pleaseeUnable to make a POST request to retrieve a token with `grant_type` of `authorization_code`I'm attempting to follow the "Quick Start" guide on signing in users. I have successfully retrieved Github connected appsHi, I've been struggling to set up a Github login via Connected apps. I'll try to explain it brieflyKinde Pro subscription + Expo questionHi, Together with a group of several colleagues, we are creating a non-profit project for an event aTrouble with createKindeManagementAPIClient.usersApiHi, I'm just starting with Kinde, and I'm trying to use the Users API. I've enabled the API in my enReducing log spam when user not logged inIs there a way to suppress the error in the logs when accessing Kinde data when not logged in? I'm rReading Kinde user's discord id, if possibleHey Is it possible to read Kinde user's discord id? Is it being stored?