I'm trying to make a simple client side javascript app that lets a user login using their google account and then sends api calls using the youtube v3 API using their permission token. My problem is all example code I can find uses a gapi.auth2 and this is deprecated.https://developers.google.com/youtube/v3/code_samples/code_snippets here for example all the code snippets use it, and while they work they do give the deprecated warning.
What is the simplest barebone code example of doing this?