Add JWT generation, creation and validation along with tests

- from arieshi255/SnowcloakUtils
This commit is contained in:
2025-08-31 23:40:23 -04:00
parent a6a3fe8ec2
commit bc8e7d08f2
5 changed files with 166 additions and 0 deletions

View File

@@ -6,6 +6,10 @@ import (
"math/rand"
)
type SnowcloakConfigurationBase struct {
Jwt string
}
func GenerateRandomString(length int) string {
// C# had optional parameters that allowed lowercase for chardata and gpose lobbies, Go doesn't.
// We can probably get away with just uppercase.