connectUserWithProvider method
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,
);