Hi,
I have a Application with a Nextjs Frontend.
I got three Backend API’s. So i wanted to authenticate in the frontend and request the JWT there. It should be the same for all API’s. But I can’t access my JWT.
How would you build the Security in this specific case?
tyf
May 10, 2024, 9:11pm
3
Hey there @nicola.hofstetter welcome to the community!
The following example may help:
# Examples
- [Create your own instance of the SDK](#create-your-own-instance-of-the-sdk)
- [Customize handlers behavior](#customize-handlers-behavior)
- [Use custom auth urls](#use-custom-auth-urls)
- [Protecting a Server-Side Rendered (SSR) Page](#protecting-a-server-side-rendered-ssr-page)
- [Protecting a Client-Side Rendered (CSR) Page](#protecting-a-client-side-rendered-csr-page)
- [Protect an API Route](#protect-an-api-route)
- [Protecting pages with Middleware](#protecting-pages-with-middleware)
- [Access an External API from an API Route](#access-an-external-api-from-an-api-route)
- [Add a signup handler](#add-a-signup-handler)
- [Use with Base Path and Internationalized Routing](#use-with-base-path-and-internationalized-routing)
- [Use a custom session store](#use-a-custom-session-store)
- [Back-Channel Logout](#back-channel-logout)
See also the [example app](./example-app).
### Create your own instance of the SDK
When you use the named exports, the SDK creates an instance of the SDK for you and configures it with the provided environment variables.
This file has been truncated. show original
system
Closed
May 24, 2024, 9:11pm
4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.