Returns a Promise that resolves with the Credential instance that matches the provided parameters.
Examples
Relying parties (RPs) can call navigator.credentials.get() with the identity option to make a request for users to sign in to the RP via an identity provider (IdP), using identity federation. A typical request would look like this:
If successful, this call will fulfill with an IdentityCredential instance. From this, you could return the IdentityCredential.token value, for example: