1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-12 22:07:47 +02:00

Auth invalid token fix (#1650)

This commit is contained in:
Janos Dobronszki
2020-05-20 16:18:05 +02:00
committed by GitHub
parent 6a661fd08c
commit 0615fe825f

View File

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