forked from gongxuegit/tiku-backend.net
feat: add local authentication
This commit is contained in:
13
Tiku.Application/Auth/ITokenService.cs
Normal file
13
Tiku.Application/Auth/ITokenService.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Tiku.Domain.Tenancy;
|
||||
|
||||
namespace Tiku.Application.Auth;
|
||||
|
||||
public interface ITokenService
|
||||
{
|
||||
(string Token, DateTimeOffset ExpiresAt) CreateAccessToken(
|
||||
Guid userId,
|
||||
Guid sessionId,
|
||||
string? phone,
|
||||
string? email,
|
||||
TenantMembership membership);
|
||||
}
|
||||
Reference in New Issue
Block a user