package oauth import ( "crypto/rand" "encoding/hex" ) func NewState() string { b := make([]byte, 16) _, _ = rand.Read(b) return hex.EncodeToString(b) }