Google requires ?access_type=offline in the authorization url:
https://accounts.google.com/o/oauth2/auth?access_type=offline&prompt=consent
This library concats ?client_id= which leads to two ?.
A more elegant way would be to use new URL() and then .searchParams.append('client_id', ...).
Google requires
?access_type=offlinein the authorization url:This library concats
?client_id=which leads to two?.A more elegant way would be to use
new URL()and then.searchParams.append('client_id', ...).