context
This commit is contained in:
parent
7513a2eacd
commit
182eae39ab
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user