bind method

Future<void> bind(
  1. String uid
)

Implementation

Future<void> bind(String uid) async {
  if (_bound) {
    _logWarn("Already Bound, unbinding first");
    await unbind();
  }

  _log("Binding to $uid");
  await onBind?.call(UserMeta(FirebaseAuth.instance.currentUser!));
  _bound = true;
  _authState.add(this);
  _logSuccess("Successfully Bound to $uid");
}