mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
ab643c16a4
Added user session models, interfaces, repository, and service for managing user sessions and refresh tokens. Refactored authentication flow to return user objects and open sessions with device info, supporting refresh token generation and validation. Updated JWT configuration to separate access and refresh options, and refactored related tests and API contracts. Improved media upload handling and error logging. Migrated dependency references and DI registrations accordingly.
10 lines
260 B
C#
10 lines
260 B
C#
using Govor.Core.Models;
|
|
using Govor.Core.Models.Users;
|
|
|
|
namespace Govor.Application.Interfaces.Authentication;
|
|
|
|
public interface IInvitesService
|
|
{
|
|
public Task<string> GetRoleAsync(User user);
|
|
public Task<Invitation> ValidateAsync(string inviteCode);
|
|
} |