Trying to get the token....
Connecting to the mail box...
array(7) {
["error"]=>
string(13) "invalid_grant"
["error_description"]=>
string(196) "AADSTS9002313: Invalid request. Request is malformed or invalid. Trace ID: 1e79da73-d09a-4302-af52-0a351c5b0b00 Correlation ID: cd8fd943-48b0-4c8e-bed4-08b4fa872a31 Timestamp: 2026-01-27 08:19:01Z"
["error_codes"]=>
array(1) {
[0]=>
int(9002313)
}
["timestamp"]=>
string(20) "2026-01-27 08:19:01Z"
["trace_id"]=>
string(36) "1e79da73-d09a-4302-af52-0a351c5b0b00"
["correlation_id"]=>
string(36) "cd8fd943-48b0-4c8e-bed4-08b4fa872a31"
["error_uri"]=>
string(52) "https://login.microsoftonline.com/error?code=9002313"
}
Notice: Undefined index: access_token in /var/www/html/oauth/test_refresh.php on line 71
NULL
bool(true)
dopo open
Fatal error: Uncaught exception 'RuntimeException' with message 'Unable to open the INBOX' in /var/www/html/oauth/test_refresh.php:84
Stack trace:
#0 {main}
thrown in /var/www/html/oauth/test_refresh.php on line 84