hundreds-psychiatrist-38730
08/17/2025, 7:31 PM@ory/nextjs
package that gives access to frontendAPI
on client side?prehistoric-magician-21755
08/17/2025, 9:37 PMhundreds-psychiatrist-38730
08/17/2025, 9:42 PMprehistoric-magician-21755
08/17/2025, 10:17 PMprehistoric-magician-21755
08/17/2025, 10:17 PMprehistoric-magician-21755
08/17/2025, 10:19 PMprehistoric-magician-21755
08/17/2025, 10:20 PMhundreds-psychiatrist-38730
08/18/2025, 1:05 PMhundreds-psychiatrist-38730
08/18/2025, 1:06 PMprehistoric-magician-21755
08/18/2025, 1:08 PM"use client"
import { useSession } from "@ory/elements-react/client"
import "@ory/elements-react/theme/styles.css"
export default function ClientPage() {
const { session } = useSession()
return (
<div className='flex flex-col gap-8 items-center mb-8'>
<div className='space-y-4 max-w-2xl'>
<h2>Session</h2>
<pre className='p-4 rounded text-sm overflow-auto'>
{JSON.stringify(session, null, 2)}
</pre>
</div>
</div>
)
}
hundreds-psychiatrist-38730
08/18/2025, 1:09 PM