Jump to top

AuthCredential

interface

Interface that represents the credentials returned by an auth provider. Implementations specify the details about each auth provider's credential requirements.

TODO Missing; signInMethod, toJSON, fromJSON

Example
const provider = firebase.auth.EmailAuthProvider;
const authCredential = provider.credential('foo@bar.com', '123456');

await firebase.auth().signInWithCredential(authCredential);

Properties

providerId

</>

The authentication provider ID for the credential. For example, 'facebook.com', or 'google.com'.

providerId: string;

secret

</>
secret: string;

token

</>
token: string;