kinde-oss / kinde-auth-nextjs

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

Bug: No typescript support #208

Open abdulahd2008 opened 2 months ago

abdulahd2008 commented 2 months ago

Prerequisites

Describe the issue

There is no typescript inference and intellisense, upon furthering investigating, I have seen the types are probably not "connected" to the library please fix it soon as possible, as I cannot correctly use the library as there is no intellisense

Library URL

https://github.com/kinde-oss/kinde-auth-nextjs

Library version

^2.3.8

Operating system(s)

Other Linux

Operating system version(s)

Fedora 39

Further environment details

No response

Reproducible test case URL

No response

Additional information

No response

abdulahd2008 commented 2 months ago

Especially in the withAuth middleware function

peterphanouvong commented 2 months ago

thanks @abdulahd2008 - we'll add some TS support to the middleware

abdulahd2008 commented 2 months ago

Also the login and register function is available only in react sdk, for custom page

peterphanouvong commented 2 months ago

Hey @abdulahd2008 would you be able to expand on that comment about login + register? Just want to know exactly what you mean so we can help out :)