Skip to content

Commit

Permalink
Auth invalid token fix (micro#1650)
Browse files Browse the repository at this point in the history
  • Loading branch information
crufter committed May 20, 2020
1 parent 6a661fd commit 0615fe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0615fe8

Please sign in to comment.