{"id":71478,"library":"frank-jwt","title":"Frank JWT","description":"Implementation of JSON Web Tokens (JWT) for encoding and decoding.","status":"active","version":"3.1.4","language":"rust","source_language":null,"source_url":"https://github.com/GildedHonour/frank_jwt","tags":["jwt","authentication","token","json"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nfrank_jwt = \"3.1.4\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add frank_jwt","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"encode","correct":"use frank_jwt::{encode, decode};"}],"quickstart":{"code":"use frank_jwt::{encode, Algorithm, default_header};\n\nfn main() {\n    let payload = serde_json::json!({ \"sub\": \"1234567890\" });\n    let secret = \"secret\";\n    let header = default_header();\n    let token = encode(header, &payload, secret, Algorithm::HS256).unwrap();\n    println!(\"Token: {}\", token);\n}","lang":"rust","description":"Creates a JWT token with HS256 signing."},"warnings":[{"fix":"Check the documentation for supported algorithms before use.","message":"The crate uses a custom `Algorithm` enum that may not cover all JWT algorithms.","severity":"gotcha","affected_versions":"<=3.1.4"}],"env_vars":null,"search_vec":"'authent':14 'decod':12 'encod':10 'frank':1 'implement':3 'json':5,16 'jwt':2,8,13 'token':7,15 'web':6","created_at":"2026-06-17T18:27:38.495880+00:00","updated_at":"2026-06-17T18:27:38.495880+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/GildedHonour/frank_jwt","github":"https://github.com/GildedHonour/frank_jwt","docs":"https://docs.rs/frank_jwt/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["auth","serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}