diff --git a/src/client/use-user.tsx b/src/client/use-user.tsx index 4940b435..94ca3244 100644 --- a/src/client/use-user.tsx +++ b/src/client/use-user.tsx @@ -162,7 +162,7 @@ export type UseUser = () => UserContext; * * ```js * // pages/profile.js - * import Link from 'next/link'; + * 'use client'; * import { useUser } from '@auth0/nextjs-auth0/client'; * * export default function Profile() { @@ -170,8 +170,8 @@ export type UseUser = () => UserContext; * * if (isLoading) return
Loading...
; * if (error) return
{error.message}
; - * if (!user) return Login; - * return
Hello {user.name}, Logout
; + * if (!user) return Login; + * return
Hello {user.name}, Logout
; * } * ``` *