Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Emmanuelpcg's avatar

JWT session loggin multiple apis in same server issue

I have two different APIs on the same server with the same url base, but in different subfolders, in both I have JWT authentication.

A problem occurs when I login to one, the JWT of the other API identifies that there is a section too and leaves it logged in, but with token validation errors of course because the token secret is different.

Is there any way to separate JWT authentication on the same server?

0 likes
1 reply

Please or to participate in this conversation.