mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
feat: auth, compression, jwt, paste wip, roles, ratelimiting
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using SharpbinV3.Data.Entities;
|
||||
using SharpbinV3.DTOs;
|
||||
|
||||
namespace SharpbinV3.Services
|
||||
{
|
||||
public interface IAuthService
|
||||
{
|
||||
Task<User> CreateUser(string username, string password, string? email, string? displayName);
|
||||
Task<JWTResult> GenerateJWTToken(User user);
|
||||
Task<bool> ValidateJWTToken(string token);
|
||||
Task<JWTResult> RefreshJWTToken(string token, string refreshToken);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user