init method
Initializes the client by authorizing the user with the constructor supplied UserDetails
Must be called on every instance of ValorantClient to send authorized requests from the instance.
Implementation
Future<bool> init(bool handleSessionAutomatically) async {
if (_rsoHandler._isLoggedIn) {
return true;
}
if (!await _rsoHandler.authenticate(handleSessionAutomatically)) {
callback.invokeErrorCallback('Authentication Failed.');
return false;
}
return _isInitialized = true;
}