using ShoppingAssistantApi.Application.IServices.Identity; using ShoppingAssistantApi.Application.Models.Identity; namespace ShoppingAssistantApi.Api.Mutations; [ExtendObjectType(OperationTypeNames.Mutation)] public class AccessMutation { public Task LoginAsync(AccessUserModel login, CancellationToken cancellationToken, [Service] IUserManager userManager) => userManager.LoginAsync(login, cancellationToken); public Task AccessGuestAsync(AccessGuestModel guest, CancellationToken cancellationToken, [Service] IUserManager userManager) => userManager.AccessGuestAsync(guest, cancellationToken); public Task RefreshUserTokenAsync(TokensModel model, CancellationToken cancellationToken, [Service] ITokensService tokensService) => tokensService.RefreshUserAsync(model, cancellationToken); }