Files
social-media/backend/Infrastructure/Security/RefreshTokenGenerator.cs
Jonathan Bourdon df3e602015
Some checks failed
Backend CI/CD / build_and_deploy (push) Has been cancelled
Frontend CI/CD / build_and_deploy (push) Has been cancelled
feat: pivot to social media workflow app
2026-04-24 12:58:35 -04:00

14 lines
320 B
C#

using System.Security.Cryptography;
namespace Socialize.Infrastructure.Security;
public static class RefreshTokenGenerator
{
public static string Next()
{
byte[] randomNumber = new byte[32];
RandomNumberGenerator.Fill(randomNumber);
return Convert.ToBase64String(randomNumber);
}
}