You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to use the User type returned by import { useUser } from '@auth0/nextjs-auth0' in my code for typing. It does not seem however I can use it in my project.
In previous versions we were able to do
import { UserProfile, useUser } from '@auth0/nextjs-auth0/client'
Reproduction
Trying to import a type for the user from useUser hook
Additional context
No response
nextjs-auth0 version
v4.0.0-beta.7
Next.js version
15.0.3
Node.js version
v22.11.0
The text was updated successfully, but these errors were encountered:
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.
Checklist
Description
I would like to be able to use the
User
type returned byimport { useUser } from '@auth0/nextjs-auth0'
in my code for typing. It does not seem however I can use it in my project.In previous versions we were able to do
Reproduction
Trying to import a type for the user from
useUser
hookAdditional context
No response
nextjs-auth0 version
v4.0.0-beta.7
Next.js version
15.0.3
Node.js version
v22.11.0
The text was updated successfully, but these errors were encountered: