with
NextAuth.js
Example.
menu
Home
Client
Middleware
Server
This Page is
Client side protected
.
Employ client-side protection only when no alternative options are available for fulfilling your needs.
Userdata fetched /w useSession on client side:
Toggle