According to the documentation (https://developers.google.com/identity/one-tap/web/retrieve-credentials), we can get our saved password, just like when we use Credential Management API on Chrome.
I'm already currently logged in to Google in my browser.
I have tried to use the googleyolo api, using .retrieve()
function as documented:
const retrievePromise = googleyolo.retrieve({
supportedAuthMethods: [
"https://accounts.google.com",
"googleyolo://id-and-password"
],
supportedIdTokenProviders: [
{
uri: "https://accounts.google.com",
clientId: "*********-**********.apps.googleusercontent.com"
}
]
}).then(res => console.log(res));
and it only return the idToken
, no password returned.
But weirdly, when I tried using Credential Management API on Chrome my saved credentials popped up.
The question is, 1. What went wrong? 2. Where did googleyolo get its list of credentials? Because I checked at my https://passwords.google.com, and my credentials exists 3. What should I do/troubleshoot to get my password credentials?