Need Help Getting Session From JWT Bearer Header

So I have a nextjs that is severing as my backend for a separate client. I would like this client to use jwt to authenticate with the api. I have added the bearer and jwt plugins and have been able to get the jwt token either by the get-session endpoint or the token endpoint. But once I try to use the token in a header “Bearer {token}” all my requests fail. I try to get the session and pass in the headers like auth.api.getSession({headers: req.headers}) but the session is always null. Any guidance on things I can try or help debug would be helpful! Thanks
Was this page helpful?