connectUserWithProvider method

Future<OwnUser> connectUserWithProvider(
  1. User user,
  2. TokenProvider tokenProvider, {
  3. bool connectWebSocket = true,
})

Connects the current user using the tokenProvider to fetch the token. It returns a Future that resolves when the connection is setup.

Implementation

Future<OwnUser> connectUserWithProvider(
  User user,
  TokenProvider tokenProvider, {
  bool connectWebSocket = true,
}) =>
    _connectUser(
      user,
      provider: tokenProvider,
      connectWebSocket: connectWebSocket,
    );