where can I find JWT Validation using jwt validation library for Python(example)?
a
where can I find JWT Validation using jwt validation library for Python(example)?
i create user
Copy code
jwtResponse = create_jwt({"anonymous_user": True, "email": uid.login})
but when request for authorization I get an error
Copy code
UnauthorisedError at /api/boxed-program/program/
Session does not exist. Are you sending the session tokens in the request with the appropriate token transfer method?
in my custom auth for drf i call
Copy code
session = get_session(request)
in settings
Copy code
python
session.init(
            
            override=session.InputOverrideConfig(functions=override_functions),
            use_dynamic_access_token_signing_key=False
        ),
r
So get_session is only meant to verify session created using session.create_new_session function. For jwts issued by create_jwt, you would just use any jwt lib out there
a
I'm using jwts and making a request to auth/jwt/jwks.json/ how do I make tests for this if I link to an external source
can i store jwts in a file on server?
r
im not sure i understand what you mean. But, maybe this will help: https://supertokens.com/docs/session/common-customizations/sessions/with-jwt/jwt-verification