linkCredentialWithPhone method

Future<AuthResponse> linkCredentialWithPhone(
  1. String number,
  2. BuildContext context
)

if you call this, you need to call verifyLinkCredentialWithPhone after.

Implementation

Future<AuthResponse> linkCredentialWithPhone(
    String number, BuildContext context) async {
  if (auth == null || user == null) {
    return AuthResponse(Status.Failed, "There is no user. Please Login.");
  }

  AuthResponse response = await signInWithPhone(number, context);

  return response;
}