【发布时间】:2021-01-29 03:52:04
【问题描述】:
Gmail 身份验证令牌在一小时后过期,有没有办法将令牌的生命周期延长至 24 小时或更长时间? 我正在使用以下方法:
const oAuth2Client = await new google.auth.OAuth2(client_id, client_secret, redirect);
// got the token
oAuth2Client.setCredentials(tokens);
【问题讨论】:
标签: gmail google-oauth gmail-api google-authentication oauth2client