doc: fix spell mistake (#627)

This commit is contained in:
另维64
2021-04-14 17:58:27 +08:00
committed by GitHub
parent 5aded99df5
commit 7e087de6e6

View File

@@ -110,7 +110,7 @@ func WithJwt(secret string) RouteOption {
}
// WithJwtTransition returns a func to enable jwt authentication as well as jwt secret transition.
// Which means old and new jwt secrets work together for a peroid.
// Which means old and new jwt secrets work together for a period.
func WithJwtTransition(secret, prevSecret string) RouteOption {
return func(r *featuredRoutes) {
// why not validate prevSecret, because prevSecret is an already used one,