a0a0575a99
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 10s
🚀 Create and publish a Docker image / Build & publish backend image (push) Successful in 1m17s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Successful in 12s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 6s
14 lines
574 B
C#
14 lines
574 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, Domain.Enums.UserRole role, string? ipAddress = null);
|
|
Task<AuthResult> RefreshTokenAsync(string refreshToken);
|
|
Task RevokeRefreshTokenAsync(string refreshToken);
|
|
Task<UserDto> GetCurrentUserAsync(int userId);
|
|
}
|