mirror of
https://github.com/bitwarden/server.git
synced 2026-02-09 02:13:11 +08:00
* Refactor AuthRequest Logic into Service * Add Tests & Run Formatting * Register Service * Add Tests From PR Feedback Co-authored-by: Jared Snider <jsnider@bitwarden.com> --------- Co-authored-by: Jared Snider <jsnider@bitwarden.com>
15 lines
520 B
C#
15 lines
520 B
C#
using Bit.Core.Auth.Entities;
|
|
using Bit.Core.Auth.Models.Api.Request.AuthRequest;
|
|
|
|
#nullable enable
|
|
|
|
namespace Bit.Core.Auth.Services;
|
|
|
|
public interface IAuthRequestService
|
|
{
|
|
Task<AuthRequest?> GetAuthRequestAsync(Guid id, Guid userId);
|
|
Task<AuthRequest?> GetValidatedAuthRequestAsync(Guid id, string code);
|
|
Task<AuthRequest> CreateAuthRequestAsync(AuthRequestCreateRequestModel model);
|
|
Task<AuthRequest> UpdateAuthRequestAsync(Guid authRequestId, Guid userId, AuthRequestUpdateRequestModel model);
|
|
}
|