I have installed the oauth2 plugin for authentication with Google and Microsoft. Google is working well and authenticate properly. But Microfsoft is not working. I have read a lot of articles but not found any solution. i am using moodle 3.6
ERROR:
error/Could not upgrade oauth token
Debug info:
Error code: Could not upgrade oauth token
$a contents:
Error code: Could not upgrade oauth token
$a contents:
- line 567 of /lib/oauthlib.php: moodle_exception thrown
- line 475 of /lib/oauthlib.php: call to oauth2_client->upgrade_token()
- line 44 of /auth/oauth2/login.php: call to oauth2_client->is_logged_in()