koding / kite

Micro-service framework in Go
https://godoc.org/github.com/koding/kite
MIT License
3.26k stars 300 forks source link

kontrol: add Force parameter to get new token #198

Closed rjeczalik closed 7 years ago

rjeczalik commented 7 years ago

The "getToken" method will always return the same token until it has expired.

The Force parameter forces Kontrol to generate new token, even if the old one is not expired, at least from Kontrol's perspective.