slowli / justwebtoken.io

Website about JSON web tokens

Home Page:https://justwebtoken.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Just Web Tokens

Build status Live website License: Apache-2.0

Web app for JSON Web Token verification also providing a gentle overview of the JWT tech. Dynamic logic is built with the Rust / WASM toolchain and Yew. Packaged with Webpack. Styled using Bootstrap. JWT verification is powered by the jwt-compact Rust library with pure-Rust crypto backends for RSA, Ed25519 and secp256k1.

Running locally

You will need to install a Node / npm toolchain (preferably via a manager like nvm) and a Rust toolchain (preferably via rustup). Both toolchains should be recent; e.g., Node 18-LTS and Rust 1.71+. You should also install wasm-pack.

To serve the app locally with the Webpack dev server, run

npm start

Testing

To run tests, use npm test. Be aware that this command requires specifying browsers used for testing as flags (e.g., -- --firefox).

Consult package.json for the full list of linting and testing commands. Note that Rust-related linting requires additional components (fmt and clippy) installed as a part of the relevant toolchain.

License

Licensed under Apache-2.0 license.

About

Website about JSON web tokens

https://justwebtoken.io

License:Apache License 2.0


Languages

Language:Rust 72.3%Language:Pug 16.4%Language:JavaScript 8.8%Language:SCSS 1.9%Language:Shell 0.6%