feat: add Auth0 passwordless login
This commit is contained in:
18
app/user/page.tsx
Normal file
18
app/user/page.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
'use client';
|
||||
|
||||
import { useUser } from '@auth0/nextjs-auth0/client';
|
||||
|
||||
export default function ProfileClient() {
|
||||
const { user, error, isLoading } = useUser();
|
||||
|
||||
if (isLoading) return <div>Loading...</div>;
|
||||
if (error) return <div>{error.message}</div>;
|
||||
|
||||
return (
|
||||
user && (
|
||||
<div>
|
||||
<p>{user.email}</p>
|
||||
</div>
|
||||
)
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user