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