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

v4 beta 7 user type is not exported #1824

Closed
6 tasks done
ajwootto opened this issue Nov 22, 2024 · 3 comments
Closed
6 tasks done

v4 beta 7 user type is not exported #1824

ajwootto opened this issue Nov 22, 2024 · 3 comments

Comments

@ajwootto
Copy link

Checklist

Description

There is no export of the User type representing the user, so Typescript users cannot type things based on that without grabbing it via return types of other methods etc.

Reproduction

see above

Additional context

No response

nextjs-auth0 version

4.0.0-beta.7

Next.js version

15

Node.js version

22

@634750802
Copy link

Workaround SessionData['user']

@guabu guabu mentioned this issue Nov 24, 2024
@guabu
Copy link

guabu commented Nov 24, 2024

Hi @ajwootto 👋 We'll get that added in the next release, thanks for the feedback!

In the meantime, you can use the workaround suggested by @634750802 and as mentioned in the other thread: #1810 (comment)

@guabu
Copy link

guabu commented Nov 26, 2024

We consolidated the types to be available under the /types submodule and the User can now be imported as follows: import { User } from "@auth0/nextjs-auth0/types"; in 4.0.0-beta.8.

Thanks for the feedback and patience here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants