hsiangfeng / hsiangfeng.github.io

是 Ray 不是 Array - Ray Blog
https://israynotarray.com/
7 stars 0 forks source link

nodejs/20191228/1009061739/ #14

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

全端勇士之路 Node.js-OAuth 2.0 & nodemailer & Gmail | 是 Ray 不是 Array

這一次來針對 nodemailer 多一個介紹,因為現在 Google 已經不再接受使用帳號密碼的形式去發送 Gmail 信件,所以就紀錄一下,如何使用 Express + OAuth 2.0 + nodemailer + Gmail 的筆記。

https://israynotarray.com/nodejs/20191228/1009061739/

naikyding commented 1 year ago

[第二步驟] 取得 Refresh token 與 Access token 實務上如果 token 有失效的問題,怎麼處理比較好 ?

hsiangfeng commented 1 year ago

[第二步驟] 取得 Refresh token 與 Access token 實務上如果 token 有失效的問題,怎麼處理比較好 ?

關於這問題的話,你可以參考這個影片就有完整說明囉

https://www.youtube.com/watch?v=-rcRf7yswfM&feature=emb_logo

naikyding commented 1 year ago

我試了他的方法,Refresh token 還是過期了, 目前也正在理解影片「置頂留言」的作法,但還不是很懂.. XD

Refresh tokens may stop working after they are granted, either because: The application has a status of 'Testing' and the consent screen is configured for an external user type, causing the token to expire in 7 days With reference to Github page: https://github.com/googleapis/google-api-nodejs-client#readme

hsiangfeng commented 1 year ago

我試了他的方法,Refresh token 還是過期了, 目前也正在理解影片「置頂留言」的作法,但還不是很懂.. XD

Refresh tokens may stop working after they are granted, either because: The application has a status of 'Testing' and the consent screen is configured for an external user type, causing the token to expire in 7 days With reference to Github page: https://github.com/googleapis/google-api-nodejs-client#readme

你也可以參考這邊哩

https://stackoverflow.com/questions/24098461/nodemailer-gmail-what-exactly-is-a-refresh-token-and-how-do-i-get-one

hsiangfeng commented 10 months ago

我試了他的方法,Refresh token 還是過期了, 目前也正在理解影片「置頂留言」的作法,但還不是很懂.. XD

Refresh tokens may stop working after they are granted, either because: The application has a status of 'Testing' and the consent screen is configured for an external user type, causing the token to expire in 7 days With reference to Github page: https://github.com/googleapis/google-api-nodejs-client#readme

Hi, 後來我有更新一篇文章哩~

https://israynotarray.com/nodejs/20230722/1626712457/