signInAndRetrieveDataWithCustomToken method

Future<UserCredential> signInAndRetrieveDataWithCustomToken(
  1. String token
)

Signs in a user asynchronously using a custom token and returns any additional user info data or credentials.

This method will be renamed to signInWithCustomToken() replacing the existing method with the same name in the next major version change.

Custom tokens are used to integrate Firebase Auth with existing auth systems, and must be generated by the auth backend.

Fails with an error if the token is invalid, expired, or not accepted by the Firebase Auth service.

Implementation

Future<UserCredential> signInAndRetrieveDataWithCustomToken(String token) =>
    handleThenable(jsObject.signInAndRetrieveDataWithCustomToken(token))
        .then((u) => UserCredential.fromJsObject(u));