forked from xiongyuxing/tiku-backend.net
20 lines
460 B
C#
20 lines
460 B
C#
using Tiku.Domain.Tenancy;
|
|
|
|
namespace Tiku.Application.Auth;
|
|
|
|
public interface ISessionService
|
|
{
|
|
string GenerateRefreshToken();
|
|
string HashRefreshToken(string refreshToken);
|
|
|
|
Task<AuthTokenPair> IssueAsync(
|
|
Guid userId,
|
|
string? phone,
|
|
string? email,
|
|
TenantMembership membership,
|
|
string provider,
|
|
string? ipAddress,
|
|
string? userAgent,
|
|
CancellationToken cancellationToken = default);
|
|
}
|