AdnanHussainTurki / microsoft-api-php

Microsoft Graph API Wrapper for PHP
25 stars 6 forks source link

State parameter does not matched #1

Closed bitpickle closed 2 years ago

bitpickle commented 3 years ago

The line $tokens = $auth->getToken($_REQUEST['code'], $_REQUEST['state']); is returning an error:

"State parameter does not matched"

I think that is something with the version.

rmcnulty commented 3 years ago

This will fix it for you On line 13 of callback.php: if ( !empty($_REQUEST['state']) ) { Session::set('state', $_REQUEST['state']) }