setSessionKey method

Future<void> setSessionKey(
  1. String? sessionKey
)

Set a sessionKey that will be used for SDK globally

This method will also encrypt this key and store in prefs

Implementation

Future<void> setSessionKey(String? sessionKey) async {
  _sessionKey = sessionKey;
  await _encryptedSessionKey(sessionKey);
}