i want to use MS graph api, i have CODE, and i need to exchange code for access token, when i post request, like in docs i get this answer
{
"token_type": "Bearer",
"scope": "mail.read mail.send user.read user.read.all",
"expires_in": 3599,
"ext_expires_in": 0,
"access_token": "blah blah blah ..... §§&&##"
}
and this token will expire in 1 hour, i found, that i need refresh_token
to extend token next time, but i havent got any in response with access_token
any solution?
Thanks
Looking at the documentation for Active Directory Tokens, you need to request the offline_access
scope in your authorization code request and your token request.