hey guys, i have already test verifying session of the user by sending st-access-token in my custom api with django and it's working correctly in the local environment however after we prepared the server and push my code the login operation working but when i try to verify the session it's not working how code i solve my problem
i use this token in the picture
here is my verify_session function gives me
@verify_session()
async def get_user_info_api(request: HttpRequest):
session: SessionContainer = request.supertokens
# print("session get_user_info_api",session, flush=True)
supertoken_user_id = session.get_user_id()
# print("USER ID get_user_info_api",user_id, flush=True)
# You can learn more about the User object over here
https://github.com/supertokens/core-driver-interface/wiki
user_obj = await get_user_by_id(supertoken_user_id)
# print("user OBJ",user_obj, flush=True)
return supertoken_user_id
my function result in the server <JsonResponse status_code=401
on the local its gives my the supertoken_user_id b0d34e88-27c***61ca2269e2