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":"uf18x4t28rDifsbXceDcPyoNjfySQE34$$ht153UQz8Wb6RbxlvNCFIpXOLHTvKMEO","refresh_token":"uf18x4t28rDifsbXceDcPyoNjfySQE34$$MgwuPnqHK6NO0Zzr5lJy1ZNjVsviFs1HwaHL4FtM","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