14 lines
317 B
C#
14 lines
317 B
C#
using System.Security.Cryptography;
|
|
|
|
namespace Hutopy.Infrastructure.Security;
|
|
|
|
public static class RefreshTokenGenerator
|
|
{
|
|
public static string Next()
|
|
{
|
|
byte[] randomNumber = new byte[32];
|
|
RandomNumberGenerator.Fill(randomNumber);
|
|
return Convert.ToBase64String(randomNumber);
|
|
}
|
|
}
|