{
    "info": {
        "name": "BDW Cooperative - Auth API",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "item": [
        {
            "name": "Register",
            "request": {
                "method": "POST",
                "url": "http://localhost:3000/api/auth/register",
                "header": [
                    { "key": "Content-Type", "value": "application/json" }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"fullName\": \"John Doe\",\n  \"email\": \"john@example.com\",\n  \"phone\": \"08031234567\",\n  \"password\": \"SecurePass123!\",\n  \"memberType\": \"trucker\",\n  \"dateOfBirth\": \"1990-01-15\"\n}"
                }
            }
        },
        {
            "name": "Login",
            "request": {
                "method": "POST",
                "url": "http://localhost:3000/api/auth/login",
                "header": [
                    { "key": "Content-Type", "value": "application/json" }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"email\": \"john@example.com\",\n  \"password\": \"SecurePass123!\"\n}"
                }
            }
        },
        {
            "name": "Get Me",
            "request": {
                "method": "GET",
                "url": "http://localhost:3000/api/auth/me",
                "header": [
                    { "key": "Authorization", "value": "Bearer {{accessToken}}" }
                ]
            }
        },
        {
            "name": "Refresh Token",
            "request": {
                "method": "POST",
                "url": "http://localhost:3000/api/auth/refresh-token",
                "header": [
                    { "key": "Content-Type", "value": "application/json" }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"refreshToken\": \"{{refreshToken}}\"\n}"
                }
            }
        },
        {
            "name": "Logout",
            "request": {
                "method": "POST",
                "url": "http://localhost:3000/api/auth/logout",
                "header": [
                    { "key": "Authorization", "value": "Bearer {{accessToken}}" }
                ]
            }
        },
        {
            "name": "Forgot Password",
            "request": {
                "method": "POST",
                "url": "http://localhost:3000/api/auth/forgot-password",
                "header": [
                    { "key": "Content-Type", "value": "application/json" }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"email\": \"john@example.com\"\n}"
                }
            }
        },
        {
            "name": "Reset Password",
            "request": {
                "method": "POST",
                "url": "http://localhost:3000/api/auth/reset-password",
                "header": [
                    { "key": "Content-Type", "value": "application/json" }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"token\": \"reset-token-here\",\n  \"memberId\": \"BDW-TV-0001\",\n  \"newPassword\": \"NewSecurePass456!\"\n}"
                }
            }
        },
        {
            "name": "Change Password",
            "request": {
                "method": "PATCH",
                "url": "http://localhost:3000/api/auth/change-password",
                "header": [
                    { "key": "Content-Type", "value": "application/json" },
                    { "key": "Authorization", "value": "Bearer {{accessToken}}" }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"currentPassword\": \"SecurePass123!\",\n  \"newPassword\": \"NewSecurePass456!\"\n}"
                }
            }
        }
    ]
}