I'm currently discovering OAuth identification on a nodejs server in order to test it with queries on the api youtube.
For now, it works, I can make the requests. There are only two things I have a problem with.
First, every time I log in, Google asks for permission even though it has already been granted (and the permission is visible in the allowed applications on my account).
According to this answer "login with google always asks user consent", this should not happen, despite the fact that I work locally.
My second question may help me answer the first. When I studied the OAuth, I learned about the existence of the refresher token, which is supposed to allow the creation of a new access token when it has expired.
I just can't figure out if it's up to me to use the refresh token or if the library does it by itself when making requests?
I based myself on: https://developers.google.com/youtube/v3/quickstart/nodejs
Each session is associated with an OAuth2Client containing tokens and all client information
[Current situation]
Refresh token is handle by the library as Rubén shown here. Still no answer about the prompt everytime.