diff --git a/docs/docs/guides/backend.mdx b/docs/docs/guides/backend.mdx index 099f6cf6e..815768e35 100644 --- a/docs/docs/guides/backend.mdx +++ b/docs/docs/guides/backend.mdx @@ -215,7 +215,16 @@ async def auth(request: Request, call_next: Any): return deny() try: - jwks_client = jwt.PyJWKClient( + # Disable SSL certificate verification while in development + + ssl_context = ssl.create_default_context() + ssl_context.check_hostname = False + ssl_context.verify_mode = ssl.CERT_NONE + + jwks_client = jwt.PyJWKClient( + HANKO_API_URL + "/.well-known/jwks.json", ssl_context=ssl_context + ) + jwks_client = jwt.PyJWKClient( HANKO_API_URL + "/.well-known/jwks.json", ssl_context=ssl_context ) signing_key = jwks_client.get_signing_key_from_jwt(token)