Protected Page
Demonstrates route protection using Next.js middleware (proxy). Only authenticated users can access this page.
Visit PageA complete example showcasing the Weblogin Auth SDK features. Log in to access protected resources and view session details.
Demonstrates route protection using Next.js middleware (proxy). Only authenticated users can access this page.
Visit PageInspect the decrypted session data and learn how to add custom attributes to the user session.
View SessionA secure API endpoint example. Returns JSON data only when a valid session cookie is present.
Test APIView the generated Service Provider metadata XML. This is used to configure the Identity Provider.
View Metadata (opens in new tab)Learn how to protect your forms against Cross-Site Request Forgery attacks using the SDK's built-in utilities.
View DemoLearn how to use a single IdP configuration for localhost, deploy previews, and production using skipEndpointValidation.
View the source code, documentation, and contribute to the Weblogin Auth SDK on GitHub.
View on GitHub (opens in new tab)View the source code for this example application on GitHub.
View Source (opens in new tab)