mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-14 17:54:42 +00:00
22 lines
912 B
C#
22 lines
912 B
C#
using Features.Users.Services;
|
|
|
|
namespace Database.Seed.DatabaseHelpers;
|
|
|
|
public class NoOpTokenService : ITokenService
|
|
{
|
|
public string GenerateAccessToken(Guid userId, string username) => string.Empty;
|
|
|
|
public string GenerateRefreshToken(Guid userId, string username) => string.Empty;
|
|
|
|
public string GenerateConfirmationToken(Guid userId, string username) => string.Empty;
|
|
|
|
public Task<ValidatedToken> ValidateRefreshTokenAsync(string token) =>
|
|
throw new NotSupportedException("Token validation is not supported during seeding.");
|
|
|
|
public Task<ValidatedToken> ValidateConfirmationTokenAsync(string token) =>
|
|
throw new NotSupportedException("Token validation is not supported during seeding.");
|
|
|
|
public Task<RefreshTokenResult> RefreshTokenAsync(string refreshTokenString) =>
|
|
throw new NotSupportedException("Token validation is not supported during seeding.");
|
|
}
|