6824d7ce7d
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 9s
🚀 Create and publish a Docker image / Build & publish backend image (push) Successful in 2m6s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Successful in 26s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 6s
14 lines
596 B
C#
14 lines
596 B
C#
using UniVerse.Application.DTOs.Auth;
|
|
using UniVerse.Application.DTOs.Users;
|
|
|
|
namespace UniVerse.Application.Interfaces;
|
|
|
|
public interface IAuthService
|
|
{
|
|
Task<AuthResult> LoginWithMicrosoftAsync(string authorizationCode, string? redirectUri = null, string? ipAddress = null);
|
|
Task<AuthResult> DevLoginAsync(string email, string? displayName, IReadOnlyCollection<Domain.Enums.UserRole> roles, string? ipAddress = null);
|
|
Task<AuthResult> RefreshTokenAsync(string refreshToken);
|
|
Task RevokeRefreshTokenAsync(string refreshToken);
|
|
Task<UserDto> GetCurrentUserAsync(int userId);
|
|
}
|