diff --git a/util/auth/auth.go b/util/auth/auth.go index 454c5e9e..cb292c5e 100644 --- a/util/auth/auth.go +++ b/util/auth/auth.go @@ -64,7 +64,7 @@ func Generate(id string, name string, a auth.Auth) error { // generate the first token tok, err := a.Token( - auth.WithCredentials(accID, accSecret), + auth.WithToken(tok.RefreshToken), auth.WithExpiry(time.Minute*10), ) if err != nil {