Skip to content

Commit

Permalink
Merge pull request #280 from richzw/master
Browse files Browse the repository at this point in the history
fix(appstore): Init the bearer when Bearer is empty
  • Loading branch information
takecy authored May 16, 2024
2 parents 947c9eb + e02ad0c commit 63f7061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appstore/api/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (t *Token) GenerateIfExpired() (string, error) {
t.Lock()
defer t.Unlock()

if t.Expired() {
if t.Expired() || t.Bearer == "" {
err := t.Generate()
if err != nil {
return "", err
Expand Down

0 comments on commit 63f7061

Please sign in to comment.