/// <summary> /// You may require users to consent to terms and conditions before they can use the service. /// Use this endpoint to register that a user has given their consent. /// </summary> /// <returns>An empty object.</returns> public Task AuthGiveConsent(MicAuthUserPassword userPassword, CancellationToken cancelToken = default) => HandleClientRequest <MicAuthUserPassword, MicResponse>(nameof(AuthGiveConsent), userPassword, cancelToken);
/// <summary> /// You may require users to consent to terms and conditions before they can use the service. /// Use this endpoint to register that a user has given their consent. /// </summary> /// <returns>An empty object.</returns> public Task AuthGiveConsent(MicAuthUserPassword userPassword, CancellationToken cancelToken = default) => HandleClientRequest <MicAuthUserPassword, MicResponse>(authGiveConsentUrl, HttpMethod.Post, userPassword, hasPayload: true, cancelToken);
/// <summary> /// Checks if a user is authorized to login and returns credentials that should be used when communicating with /// AWS. The access token is valid for 60 minutes, whereafter it needs to be refreshed. /// </summary> public Task <MicAuthLoginResponse> AuthLogin(MicAuthUserPassword userPassword, CancellationToken cancelToken = default) => HandleClientRequest <MicAuthUserPassword, MicAuthLoginResponse>(nameof(AuthLogin), userPassword, cancelToken);