'Using the new Google Identity Services SDK how do I get a Refresh token

I have followed the Google migration guide and successfully generated a token so that my angular code can get server responses. The server needs a token Refresh after an hour.

I can find nothing in the migration guide or related documents that give a clue about obtaining a Refresh token.

The migration guide can be found at Https://developers.google.com/identity/gsi/web/guides/migration. I have used the html JavaScript popup code sample.

There are similar questions on stackoverflow but these do not seem to cover the latest new Google identity Services SDK.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source