Skip to content

Commit

Permalink
chore: extend the token length
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTipo01 committed Oct 23, 2023
1 parent af30579 commit 158657b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (a *Api) AddUser(user *discordgo.User, userInfo UserInfo) string {
// Generate a new token until it is unique
var token string
for {
token = uniuri.New()
token = uniuri.NewLen(32)
if _, ok := a.tokensToUsers[token]; !ok {
break
}
Expand Down

0 comments on commit 158657b

Please sign in to comment.