I've just begun work on a new web application and I wanted to implement account creation/logins using google's OAuth flow. I noticed that they're discontinuing the API most people are using. https://developers.google.com/identity/sign-in/web/sign-in. I'm trying to understand how the flow for then new API (https://developers.google.com/identity/gsi/web) works.
From what I've tried, that API just responds with a single access token, which is fine for the 15 minutes it's valid for, but I don't want my users to have to go through the login process every time they revisit the site. There doesn't seem to be a method in the API for refreshing the access token without the user having to be involved.
I feel like I'm missing a step because this doesn't feel like a replacement for the existing API at all.
Basically I'm asking if this new API has any session management capabilities. If it doesn't should I just use the deprecated API for now?