File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -162,16 +162,16 @@ export type UseUser = () => UserContext;
162162 *
163163 * ```js
164164 * // pages/profile.js
165- * import Link from 'next/link ';
165+ * 'use client ';
166166 * import { useUser } from '@auth0/nextjs-auth0/client';
167167 *
168168 * export default function Profile() {
169169 * const { user, error, isLoading } = useUser();
170170 *
171171 * if (isLoading) return <div>Loading...</div>;
172172 * if (error) return <div>{error.message}</div>;
173- * if (!user) return <Link href="/api/auth/login"><a> Login</a></Link >;
174- * return <div>Hello {user.name}, <Link href="/api/auth/logout"><a> Logout</a></Link ></div>;
173+ * if (!user) return <a href="/api/auth/login">Login</a>;
174+ * return <div>Hello {user.name}, <a href="/api/auth/logout">Logout</a></div>;
175175 * }
176176 * ```
177177 *
You can’t perform that action at this time.
0 commit comments