kinde-oss / kinde-auth-nextjs

Kinde NextJS SDK - authentication for server rendered apps
https://kinde.com/docs/developer-tools/nextjs-sdk/
MIT License
146 stars 18 forks source link

Documentation issue: getKindeBrowserClient does not exist #191

Closed purnesh closed 1 month ago

purnesh commented 1 month ago

Prerequisites

How can we improve the docs or what is missing?

In the Next.JS SDK documentation under the section Kinde Auth Data - Client the the recommended helper function is useKindeBrowser, and the example uses a function called getKindeBrowserClient and both of them aren't exported from @kinde-oss/kinde-auth-nextjs.

The actual function that seems to be exported is getKindeBrowserClient and I couldn't seem to find a relevant example for it's usage anywhere in the documentatio .

Provide extra context, such as what you were trying to do and your requirements

I found this issue when trying to get the details for an authenticated user on the dashboard page. useKindeBrowserClient keeps on showing null and is always stuck in isLoading state. When I couldn't figure out what the problem was, I tried looking for documentation around the same and couldn't find any.

P.S. still unable to get anything out of useKindeBrowserClient so any advice/help would be greatly appreciated.

If the docs page already exists, please provide a link

https://docs.kinde.com/developer-tools/sdks/backend/nextjs-sdk/#kinde-auth-data---client

peterphanouvong commented 1 month ago

@purnesh thanks for raising, should be fixed now