Bruno API Collection
Get started with JWT Authentication Pro using Bruno API client
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
- Generate JWT tokens with username/password
- Includes validation tests for token format
- Validates user data response
- Validate existing JWT tokens
- Test token validity and expiration
- Verify token signature
- Refresh expired tokens
- Automatic token management
- Verify new token generation
- Retrieve user details
- Validate user data structure
- Test authorization flow
Installation
Install Bruno
First, install Bruno by following the official installation guide
Download Collection
Download or view the collection:
Extract Files
Extract the downloaded ZIP file to your project directory
Environment Setup
Open Environment Settings
- Open Bruno and load the collection
- Click on “Environments” in the right top corner
- Select “local” environment
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
Save Changes
Click the “Save” button to apply your changes
Open Environment Settings
- Open Bruno and load the collection
- Click on “Environments” in the right top corner
- Select “local” environment
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
Save Changes
Click the “Save” button to apply your changes
Navigate to Environments
Go to the environments
directory in the collection
Create Local Environment
Copy local.env.example.json
to local.env.json
Configure Variables
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)