Explorar el Código

change to reproduce bug

Ivan Galakhov hace 5 años
padre
commit
7415da1a5e
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      internal/oauth/config.go

+ 2 - 1
internal/oauth/config.go

@@ -138,7 +138,8 @@ func GetAccessToken(
 		AccessToken:  string(prevToken.AccessToken),
 		RefreshToken: string(prevToken.RefreshToken),
 		TokenType:    "Bearer",
-		Expiry:       prevToken.Expiry,
+		Expiry:       time.Now().Add(time.Duration(-10) * time.Minute),
+		//Expiry:       prevToken.Expiry,
 	})
 
 	token, err := tokSource.Token()