Colin
Explore posts from serversKKinde
•Created by lazy_manushya on 4/22/2024 in #💻┃support
How to prefill "First name" and "Last name" like we can do email with "login_hint"
@Daniel_Kinde Any update? I am currently trying to do the same thing in nuxt, this crashes the app as the user can go through the sign-up but does not have any name.
9 replies
KKinde
•Created by e0 on 2/9/2024 in #💻┃support
Updating a user's name
Also you have 2000 M2M tokens a month, if you cache your token for a day you will only use 30 tokens a month average
18 replies
KKinde
•Created by e0 on 2/9/2024 in #💻┃support
Updating a user's name
For the response delay, there is definitely a delay when compared to a local dev db but I think that once the app is deployed this will not be an issue.
18 replies
KKinde
•Created by e0 on 2/9/2024 in #💻┃support
Updating a user's name
This does not seem to use any M2M token as I just use a token from the same app as the one used by nuxt. I might be wrong but for now the dashboard does not mention any M2M token used.
I also cache this token as long as I can to mitigate this kind of issue, you can change the token expiration time in the dashboard depending of your usage.
18 replies
KKinde
•Created by e0 on 2/9/2024 in #💻┃support
Updating a user's name
Did you find a solution yet? I've experience a similar issue recently and solved it by querying the management api instead of relying on the client sdk, here is the thread about that: #Permissions and roles not updating after a change using the Nuxt module This is with nuxt but should be reproducible with any framework
18 replies
KKinde
•Created by Colin on 2/10/2024 in #💻┃support
Permissions and roles not updating after a change using the Nuxt module
This may be something that could be implemented into the module as it seems to me that this use case is pretty standard, I would be happy to contribute if this is something you want to consider.
13 replies
KKinde
•Created by Colin on 2/10/2024 in #💻┃support
Permissions and roles not updating after a change using the Nuxt module
Seems like I found a solution.
I created a
/api/kinde/me
route that gets the data from the management api and a useUser
composable that fetches the data from that route.
This was pretty easy thanks to the util @Daniel_Kinde helped me create in #Best way to access the management API from Nuxt server routes?
Here is the server route:
And here is the composable:
13 replies
KKinde
•Created by Colin on 2/10/2024 in #💻┃support
Permissions and roles not updating after a change using the Nuxt module
Hey @dave_kinde thanks for your answer. I see so the kinde client methods in the nuxt module are based on just reading the access token. I did not know that, I will try to get a solution working and post it here once it is done.
13 replies
KKinde
•Created by Colin on 2/10/2024 in #💻┃support
Permissions and roles not updating after a change using the Nuxt module
This is a kinda huge security concern as this means users could access roles and permissions that they do not have anymore, on top of being annoying to work with.
13 replies
KKinde
•Created by Colin on 2/10/2024 in #💻┃support
Permissions and roles not updating after a change using the Nuxt module
After some more testing, this is still not working, when changing a role or a permission (or any data on the user it seems) even after a clean browser refresh the data does not change.
13 replies
KKinde
•Created by Colin on 2/10/2024 in #💻┃support
Permissions and roles not updating after a change using the Nuxt module
Hey @Daniel_Kinde any news on this?
13 replies
KKinde
•Created by Grace on 2/12/2024 in #💻┃support
kinde callback
I am sorry but I don't work with Next often and it is kinda hard to figure out the issue from cut out photos, I am sure the Kinde team will be a lot more helpful than me about this
10 replies
KKinde
•Created by Grace on 2/12/2024 in #💻┃support
kinde callback
Just saying to prevent potential security issues
10 replies
KKinde
•Created by Grace on 2/12/2024 in #💻┃support
kinde callback
You should not be posting your env variables online, make sure to change every key that is in there
10 replies
KKinde
•Created by ertu on 2/12/2024 in #💻┃support
Nuxt Module org_code is not working
Done on github
25 replies
KKinde
•Created by ertu on 2/12/2024 in #💻┃support
Nuxt Module org_code is not working
Or do you prefer I ask directly on the PR feed?
25 replies
KKinde
•Created by ertu on 2/12/2024 in #💻┃support
Nuxt Module org_code is not working
Hey @Daniel_Kinde, I have a few questions about this PR, can I DM you?
25 replies
KKinde
•Created by Colin on 2/10/2024 in #💻┃support
Permissions and roles not updating after a change using the Nuxt module
Thanks for your detailled answer, for now I have covered your second and third point.
I've check the permissions and roles in the dashboard and they all work as expected.
I've also tried refreshing manually the data using the refresh method that is returned from the useAsyncData composable and it does not seem like this is the issue.
For the token point, I am not doing anything with tokens so I don't see why it would not be valid (do you have any docs about what operations could lead to token invalidation?). I simply depend on the token refresh from the kinde client.
For more context after testing it seems that logging out and in again works most of the time (but this just can't be a viable solution). Note that this does not work every time and sometime even logging out and in into another account does not provide up to date data.
I will unfortunately not be able to test anything till Thursday as I am in business trip.
13 replies
KKinde
•Created by Colin on 2/7/2024 in #💻┃support
Best way to access the management API from Nuxt server routes?
I created a new thread about this matter https://discord.com/channels/1070212618549219328/1206007767865888789 as my initial issue with the management API is fixed
42 replies
KKinde
•Created by Colin on 2/7/2024 in #💻┃support
Best way to access the management API from Nuxt server routes?
This is really a problem, I just logged in another account, cameback to the original one and roles and permissions are empty again
42 replies