Skip to main content
Weblogin Auth SDK

Secure Authentication

A complete example showcasing the Weblogin Auth SDK features. Log in to access protected resources and view session details.

Protected Page

Demonstrates route protection using Next.js middleware (proxy). Only authenticated users can access this page.

Visit Page

Session Info

Inspect the decrypted session data and learn how to add custom attributes to the user session.

View Session

Protected API

A secure API endpoint example. Returns JSON data only when a valid session cookie is present.

Test API

CSRF Protection

Learn how to protect your forms against Cross-Site Request Forgery attacks using the SDK's built-in utilities.

View Demo

Multi-Env Support

Learn how to use a single IdP configuration for localhost, deploy previews, and production using skipEndpointValidation.

Learn More