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
required
Route
- Generate JWT tokens with username/password
- Includes validation tests for token format
- Validates user data response
required
Route
- Validate existing JWT tokens
- Test token validity and expiration
- Verify token signature
required
Route
- Refresh expired tokens
- Automatic token management
- Verify new token generation
required
Route
- Revoke active JWT tokens
- Test logout functionality
- Verify token invalidation
required
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:
Download Collection
JWT Auth Pro Bruno Collection (ZIP)
View Source
View collection source on GitHub
3
Extract Files
Extract the downloaded ZIP file to your project directory
Environment Setup
- Using Bruno UI
- Using Command Line
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:
string
required
Your WordPress site URL (e.g., https://your-site.com)
string
required
Your WordPress username
string
required
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
Additional Resources
Bruno Docs
Official Bruno documentation