The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/auth > signInWithCredential

signInWithCredential() function

Asynchronously signs in with the given credentials.

Signature:

export declare function signInWithCredential(auth: Auth, credential: AuthCredential): Promise<UserCredential>;

Parameters

Parameter Type Description
auth Auth The Auth instance.
credential AuthCredential The auth credential.

Returns:

Promise<UserCredential>

Description

An AuthProvider can be used to generate the credential.