This commit is contained in:
jjohnstondev 2023-01-07 18:19:33 -08:00
parent 7513a2eacd
commit 182eae39ab

View File

@ -1,7 +1,6 @@
package authmanager package authmanager
import ( import (
"context"
"encoding/json" "encoding/json"
"fmt" "fmt"
"io/ioutil" "io/ioutil"
@ -65,7 +64,7 @@ func GetClient(ctx *ctx.Context) (*spotify.Client, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
client := spotify.New(auth.Client(context.Background(), tok)) client := spotify.New(auth.Client(ctx, tok))
new_token, err := client.Token() new_token, err := client.Token()
if err != nil { if err != nil {
return nil, err return nil, err