Releases: alexferl/echo-jwt
Releases · alexferl/echo-jwt
v1.2.0
Simplified default error messages.
v1.1.0
Added global settings to be able to customize error messages and status codes.
import (
"net/http"
"github.com/alexferl/echo-jwt"
)
func main() {
jwt.ErrTokenInvalid = "token is no good"
jwt.ErrTokenInvalidStatus = http.StatusTeapot
}
v1.0.0
Add default Unset
to TokenSource
instead of currently defaulting to Cookie
.
v0.6.0
Added a token source and pass it to AfterParseFunc
. Token source can be cookie
or header
. This is useful if you need to do extra work on a certain type of token source versus another.
v0.5.0
Add ability to set the encoded refresh token on the context with the option RefreshToken.ContextKeyEncoded
. Defaults to refresh_token_encoded
.
Also changes the signature of AfterParseFunc
to accept the encoded token.
v0.4.0
Add refresh token feature. Allows some routes to expect a refresh token instead of an access token.
v0.3.1
Fix route exists, but method is wrong returns a 404 - Not Found
, now correctly returns a 405 - Method Not Allowed
.
v0.3.0
Return 404
is a route is not found instead of 401
.