feat: make some limits configurable
This commit is contained in:
parent
74800b46ef
commit
373d97e70a
11 changed files with 312 additions and 218 deletions
|
@ -135,7 +135,7 @@ public static class AuthUtils
|
|||
Convert.ToBase64String(RandomNumberGenerator.GetBytes(bytes)).Trim('=');
|
||||
|
||||
public static string RandomToken(int bytes = 48) =>
|
||||
RandomUrlUnsafeToken()
|
||||
RandomUrlUnsafeToken(bytes)
|
||||
// Make the token URL-safe
|
||||
.Replace('+', '-')
|
||||
.Replace('/', '_');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue