Class IAuthContext

Inheritance Relationships

Derived Type

Class Documentation

class IAuthContext

Subclassed by csp::systems::AuthContext

Public Functions

virtual const csp::common::LoginState &GetLoginState() const = 0

Gets information about the state of authentication and information about the current session.

Returns

csp::common::LoginState&

virtual void RefreshToken(std::function<void(bool)> Callback) = 0

Refreshes the current refresh token for the authentication session.

@Paramm Callback std::function<void(bool)> : Function that is called when the token refreshes. True = success.

virtual ~IAuthContext() = default