Our Bruno collection provides a basic set of API requests and automated tests for JWT Authentication Pro, designed for the developer to extend the collection to their needs.
Collection Contents
Route
- Generate JWT tokens with username/password
- Includes validation tests for token format
- Validates user data response
Route
- Validate existing JWT tokens
- Test token validity and expiration
- Verify token signature
Route
- Refresh expired tokens
- Automatic token management
- Verify new token generation
Route
- Revoke active JWT tokens
- Test logout functionality
- Verify token invalidation
Route
- Retrieve user details
- Validate user data structure
- Test authorization flow
Installation
1
Install Bruno
First, install Bruno by following the official installation guide
2
Download Collection
Download or view the collection:
3
Extract Files
Extract the downloaded ZIP file to your project directory
Environment Setup
1
Open Environment Settings
- Open Bruno and load the collection
- Click on “Environments” in the right top corner
- Select “local” environment
2
Configure Variables
Update the following variables in the environment editor:
Your WordPress site URL (e.g., https://your-site.com)
Your WordPress username
Your WordPress password
3
Save Changes
Click the “Save” button to apply your changes
Both methods achieve the same result. Choose the one that best fits your workflow.
Running Tests
You can use the
--env
flag to switch between different environments (local, staging, production)