Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Lack of types when updating from 1.8.25 => ^2.0.0 #88

Closed
4 tasks done
matthewrosse opened this issue Nov 8, 2023 · 1 comment · Fixed by #89
Closed
4 tasks done

Bug: Lack of types when updating from 1.8.25 => ^2.0.0 #88

matthewrosse opened this issue Nov 8, 2023 · 1 comment · Fixed by #89
Labels
bug Something isn't working

Comments

@matthewrosse
Copy link

matthewrosse commented Nov 8, 2023

Prerequisites

Describe the issue

Almost every function returned from getKindeServerSession() is of type Promise<any>. For example:

    export default function Page() {
        const { getUser } = getKindeServerSession()

        // getUser returns Promise<any>, instead of Promise<KindeUser>

    }

I think that this commit is responsible for that bug: 089cda615f5238246204a148333ac8c3887a4f24

Library URL

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

Library version

^2.0.0

Operating system(s)

macOS

Operating system version(s)

Sonoma

Further environment details

No response

Reproducible test case URL

No response

Additional information

No response

@matthewrosse matthewrosse added the bug Something isn't working label Nov 8, 2023
@peterphanouvong peterphanouvong mentioned this issue Nov 8, 2023
2 tasks
@peterphanouvong
Copy link
Collaborator

@matthewrosse should be fixed in latest hopefully - let me know if you have any issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants