I have a NextJs frontend and a python backend. Stytch frontend sdk deals with authenticating the users and stores session_id
and session_jwt
as cookies. I would like to validate the session jwt received with the request from the fronted. I tried using the session authenticate method, but I keep getting a session not found every time.
from stytch import Client
client = Client(
project_id="<project_id>",
secret="<project_secret>",
environment="test",
)
resp = client.sessions.authenticate(
session_token="<stytch_session>",
)
print(resp)
What did I do wrong?