fix(backend): use GenerateSecureRandomString for api-keys, paste ids, and refresh tokens

This commit is contained in:
2026-02-14 18:31:40 -05:00
parent 809b513e7a
commit 5017e73bb5
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ namespace SharpbinV3.Server.Services
public async Task<(ApiKey apiKey, string key)> CreateAsync(Guid userUUID, string name)
{
var key = Utilities.GenerateRandomString(KeyLength);
var key = Utilities.GenerateSecureRandomString(KeyLength);
var keyHash = ComputeHash(key);
var apiKey = new ApiKey