/* Simulate GoogleYolo Signup Inject library Steal [client ID](https://developers.google.com/identity/one-tap/web/get-started#get_your_google_api_client_id) from publisher site (trigger google login, then copy from URL of popup) Then use this snippet to trigger auto-sign-up popup: */ var elem = document.createElement('script'); elem.src = 'https://smartlock.google.com/client'; document.head.appendChild(elem); const hintPromise = googleyolo.hint({ supportedAuthMethods: ['https://accounts.google.com'], supportedIdTokenProviders: [ { uri: 'https://accounts.google.com', clientId: 'YOUR_GOOGLE_CLIENT_ID' } ] }); /* Simulate GoogleYolo Signin Inject library Steal [client ID](https://developers.google.com/identity/one-tap/web/get-started#get_your_google_api_client_id) from publisher site (trigger google login, then copy from URL of popup) Then use this snippet to trigger auto-sign-up popup (make sure you had logged in before): */ var elem = document.createElement('script'); elem.src = 'https://smartlock.google.com/client'; document.head.appendChild(elem); const retrievePromise = googleyolo.retrieve({ supportedAuthMethods: [ 'https://accounts.google.com', 'googleyolo://id-and-password' ], supportedIdTokenProviders: [ { uri: 'https://accounts.google.com', clientId: 'YOUR_GOOGLE_CLIENT_ID' } ] });