I am writing a GoLang Oauth application in which I am using below method to generate a UUID and then generate accessToken from the UUID.
import "github.com/pborman/uuid"
uuid := uuid.NewRandom()
accessToken = base64.RawURLEncoding.EncodeToString([]byte(uuid))
Wanted to know the base64 encoding of a token is as unique as UUID or not because accessToken will have unique index in my MYSQL db and will fail if there is a collision.