Cannot authenticate - fatal error
this was working before. Now I cannot auth. I call it with:
$api = Podio::instance($client_id, $client_secret);
$api->authenticate('password', array('username' => $username, 'password' => $password));
Fatal error: Uncaught exception 'PodioInvalidGrantError' in /PodioAPI.php:238
#0 /PodioAPI.php(143): Podio->request('POST', '/oauth/token', Array, Array)
#1 /script.php(6): Podio->authenticate('password', Array)
thrown in /PodioAPI.php on line 238
Please sign in to leave a comment.
If you catch the exception you can get additional information about what could be wrong. See https://github.com/podio/podio-php#error-handling for how to do so.
Thanks Andreas! I caught wrong password err.
My bad - yesterday I changed my password and forgot to change it in script.