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:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user