The Prompt
Generate a Python script using the 'requests' library to test an API endpoint for common JWT vulnerabilities. Include tests for: missing signature, 'none' algorithm, expired token, and altered payload.
How to use this prompt
Run this prompt to generate a suite of security tests that validate your API's authentication layer.