fix: align backend APIs and upload flow
This commit is contained in:
@@ -11,8 +11,8 @@ namespace IM.Jwt
|
||||
/// <param name="options"></param>
|
||||
/// <returns></returns>
|
||||
string GetToken(IEnumerable<Claim> claims, JwtOptions options);
|
||||
Task<string> CreateRefreshTokenAsync(Guid userId, CancellationToken cancellationToken = default);
|
||||
Task<string> CreateRefreshTokenAsync(Guid userId, CancellationToken cancellationToken = default, string? stamp = null, int? days = null);
|
||||
Task RevokeRefreshTokenAsync(string refreshToken);
|
||||
Task<(bool ok, Guid userId)> ValidateRefreshTokenAsync(string token, CancellationToken cancellation = default);
|
||||
Task<(bool ok, Guid userId, string? stamp)> ValidateRefreshTokenAsync(string token, CancellationToken cancellation = default);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user