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

Token Generation
required
Route
POST /wp-json/jwt-auth/v1/token
  • Generate JWT tokens with username/password
  • Includes validation tests for token format
  • Validates user data response
Token Validation
required
Route
POST /wp-json/jwt-auth/v1/validate
  • Validate existing JWT tokens
  • Test token validity and expiration
  • Verify token signature
Token Refresh
required
Route
POST /wp-json/jwt-auth/v1/refresh
  • Refresh expired tokens
  • Automatic token management
  • Verify new token generation
User Information
required
Route
GET /wp-json/jwt-auth/v1/me
  • Retrieve user details
  • Validate user data structure
  • Test authorization flow

Installation

1

Install Bruno

First, install Bruno by following the official installation guide

3

Extract Files

Extract the downloaded ZIP file to your project directory

Environment Setup

1

Open Environment Settings

  1. Open Bruno and load the collection
  2. Click on “Environments” in the right top corner
  3. Select “local” environment
2

Configure Variables

Update the following variables in the environment editor:

baseURL
string
required

Your WordPress site URL (e.g., https://your-site.com)

username
string
required

Your WordPress username

password
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

bru run --env local jwt-auth-pro

You can use the --env flag to switch between different environments (local, staging, production)

Additional Resources