Nextjs Frontend with different Backends

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?

Hey there @nicola.hofstetter welcome to the community!

The following example may help: