kbk
Explore posts from serversKKinde
•Created by kbk on 12/5/2023 in #💻┃support
What's the protocol for transfering ownership of the account?
I would like to transfer ownership of the account that runs on production for some time to a client as a part of handoff process.
I couldn't find any obvious way in the dashboard or in docs.
Cheers
2 replies
KKinde
•Created by kbk on 11/16/2023 in #💻┃support
getToken from useKindeBrowserClient
Would it be possible for
getToken
from useKindeBrowserClient
to asynchronously respond with token (ideally when isLoading is false)?
I need to pass access_token in Authorization header - currently I'm working this around just grabbing access_token from cookies, but this is not ideal.
My case is close to:
Later I use this like:
In above example code is executed before kinde is loaded (isLoaded: false), and getToken just returns null
Would be nice if getToken returned promise that would at least wait for stuff to load. Similarly how it is build with useKindeAuth in @kinde-oss/kinde-auth-react (I haven't tried it myself, but getToken returns a promise.)17 replies
TTCTheo's Typesafe Cult
•Created by kbk on 10/23/2023 in #questions
How can I conditionally set return type based on params
As in playground, I'd like to return correct types described in comments based on
returnAxiosRequest
. Can you help out? I've tried overloading and conditional types, but failed. In terms of overloading, I would not like to overload getSomething
function as real case it's actually generated - Ideally TS magic should happen in request
function.
Nudge in the right direction would also be appreciated.
https://www.typescriptlang.org/play?#code/JYOwLgpgTgZghgYwgAgMIHsQ2Ac2QbwF8BYAKDNElkRQHkAHMYTAZwLOWSgjAFcoQAQQAezFgCUILeqwgB+AFzIARunQAbCHBABuMiXKlK0eEmQixk6bIA8AFWQBeZNoCeAPnalOAEzhg4JTsAGg5kFgC+FiUQXgBbZWh9MjIYXhAEJkwuCABHXikwG3EnFxAPAAoETGwcJQwsXGDkdEZmEBZFZAYsjoBKL05qjrAc6w6IJQt0CSkZCeLPZ3xkPwClAG0AXRc2cWaI-15o5AAmAAZz5EI9Q05gGGQK1t7OgDpuPgFp2fGWCAG+DCnE+-BAY3m-1unAMYVBAghsjeazgyUMAHp0cgcDwAMroOI8AAWoBwbzALBSRnAJhoyHxhLAJJAeBWYRAcEJSgiUFJ0OQ1XSYBi8USUFusNIaQyvWxeIJxNJzzarC6PXaLEBcJ4YJy+UKNgZipZ7gqRGaLw1fTRZEx4QVAHcidAUBB1P8qcMIoiJgBGUo4sBGplKlbwoSiGZWSGTZBgKAFa59HTIO3cP4Qf0sInoXjqHwqFA-aO2YPMnDuW1YzjIAB6cjIXtG6ZjpwD8sZ5bNOS+Ecsc1kSng7pQhGTqaxLdkbezufzhfpCpDLKrNbrciAA2 replies