Password Test ============ Password from .env file: Raw value: 'if3w ynzy pfgx i4dg' Length: 19 characters Contains spaces: Yes Testing OAuth request with this password... OAuth URL: https://cazarin.sharefile.com/oauth/token Username: david@cazarin.com Password: if3w****i4dg Client ID: CwOHHD06vO... HTTP Code: 200 Response: {"access_token":"cFZZZ0Zmj15B6nfjox9qexaHCEIWLGEw$$gR4TAP0H4f925BQWLaF1KoIIMKowBm5E","refresh_token":"cFZZZ0Zmj15B6nfjox9qexaHCEIWLGEw$$jaKcNQwU0fQR4y81myH5bGyZzHmSP7FkqeGPpEtH","token_type":"bearer","expires_in":28800,"appcp":"sharefile.com","apicp":"sf-api.com","subdomain":"cazarin","access_files_folders":true,"modify_files_folders":true,"admin_users":true,"admin_accounts":true,"change_my_settings":true,"web_app_login":true} If still getting 'invalid_grant', try these steps: 1. Log into ShareFile at https://cazarin.sharefile.com 2. Go to Account Settings → Security 3. Generate a NEW app-specific password 4. Make sure the API application is active in Admin → API