Class AuthContext

Inheritance Relationships

Base Type

Class Documentation

class AuthContext : public csp::common::IAuthContext

Public Functions

AuthContext(csp::services::ApiBase *AuthenticationAPI, csp::common::LoginState &LoginState)
virtual const csp::common::LoginState &GetLoginState() const override

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) override

Refreshes the sessions RefreshToken.

This is currently used internally by the web client.