Class LoginState

Class Documentation

class LoginState

Data structure representing the user login state, including detection of access token expiry.

Public Functions

LoginState()
~LoginState()
LoginState(const LoginState &OtherState)
LoginState &operator=(const LoginState &OtherState)
bool RefreshNeeded() const

Check if the access token for the login is expired.

Returns

Is the token expired.

void SetAccessTokenRefreshTime(const csp::common::DateTime &NewDateTime)

Public Members

ELoginState State
csp::common::String AccessToken
csp::common::String RefreshToken
csp::common::String UserId
csp::common::String DeviceId
csp::common::List<csp::common::ApplicationSettings> DefaultApplicationSettings

@Brief Default, tenant-wide settings returned from the service, often used to store universal data such as feature flags.

csp::common::List<csp::common::SettingsCollection> DefaultSettings

@Brief Default settings relevant to the specific user returned from the service.

Also known as “UserSettings”.