refreshSession method
Refresh session of the account
Implementation
Future<dynamic> refreshSession() async {
log(LogLevel.info,
"Refreshing session for ${_clientOptions.deviceAuth.accountId}");
session = await auth.createOAuthToken(
grantType: "device_auth",
authClient: AuthClients().fortniteIOSGameClient,
grantData:
"account_id=${_clientOptions.deviceAuth.accountId}&device_id=${_clientOptions.deviceAuth.deviceId}&secret=${_clientOptions.deviceAuth.secret}",
);
_sessionUpdateController.add(this);
return session;
}