Add JWT generation, creation and validation along with tests
- from arieshi255/SnowcloakUtils
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user