I am protecting my api route in next js app dir as...
# support-questions-legacy
y
I am protecting my api route in next js app dir as done in the example app from superTokens. It works fine when I sent a request to the api from client. But when I send request to api from server component, it always returns Authentication Required. Seems like session is not getting fetched properly when a req is sent from server component to the api. Why ?