createToken method

  1. @override
Future<User?> createToken({
  1. required AuthPayloadModel payload,
})
override

Implementation

@override
Future<User?> createToken({required AuthPayloadModel payload}) async {
  final User? user = await _authRepository.loginWithSocial(payload);

  if (user != null) {
    _webSocket.establishConnection(forceConnection: true);
  }

  return user;
}