The refresh_token
as outlined in the OAuth documentation is never returned.
const token = await monday.oauthToken(
code,
process.env.MONDAY_CLIENT_ID,
process.env.MONDAY_CLIENT_SECRET
);
The response is…
{
token_type: 'bearer',
access_token:'eyJhbGciOiJIUzI1Ni...1lFytwQ66s',
scope: 'me:read,boards:read,boards:write,users:read,users:write,notifications:write,account:read,updates:read,updates:write,assets:read,tags:read,teams:read,webhooks:write'
}
Both the expires_in
and refresh_token
are missing as documented at https://monday.com/developers/apps/oauth
{
"access_token": "NgeFeX...FEmEka",
"token_type": "Bearer",
"scope": "boards:write boards:read",
"expires_in": "2592000",
"refresh_token": "NgeFeX...FKoLUka"
}
Thoughts?