Unable to Authenticate DQL Queries Using dgo in Dgraph Cloud

Logged in using

dg.Login(context.Background(), os.Getenv("userid"), os.Getenv("password"))

The login was successful but the error message remains the same. Should I be using dg.GetJwt().AccesJwt for the authorization header?