{"repo":"labstack/echo-jwt","free":true,"listed":false,"github":"https://github.com/labstack/echo-jwt","clone":"git clone https://github.com/labstack/echo-jwt.git","description":"JWT middleware for Echo framework","language":"Go","stars":123,"topics":["echo","echo-framework","jwt","middleware"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Echo JWT middleware JWT middleware for Echo framework. This middleware uses by default golang-jwt/jwt/v5 as JWT implementation. Versioning This repository does not use semantic versioning. MAJOR version tracks which Echo version should be used. MINOR version tracks API changes (possibly backwards incompatible) and PATCH version is incremented for fixes. NB: When golang-jwt MAJOR version changes this library will release MINOR version with breaking change . Always add at least one integration test in your project. For Echo v5 use v5.x.y releases. Minimal needed Echo versions: v5.0.0 needs Echo v5.0.0+ v4.0.0 needs Echo v4.7.0+ main branch is compatible with the latest Echo version. Usage Add JWT middleware dependency with go modules Use as import statement Add middleware in simplified form, by providing only the secret key Add middleware with configuration options Extract token in handler IMPORTANT: Integration Testing with JWT Library Ensure that your project includes at least one integration test to detect changes in major versions of the golang-jwt/jwt library early. This is crucial because type assertions like token := c.Get(\"user\").( jwt.Token) may fail silently if the imported version of the JWT library (e.g., import \"github.com/golang-jwt/jwt/v5\" ) differs from the version used internally by dependencies (e.g., echo-jwt may now use v6 ). Such discrepancies can lead to invalid casts, causing your handlers to panic or throw errors. Integration tests help safeguard against","default_branch":null,"files":null,"tree":[],"storefront":"/r/labstack","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/labstack/echo-jwt/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}