napi-rs / napi-rs/node-rs

[feature request] Add support for decode method in jsonwebtoken

Open
#931 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
1.5k
Forks
52
Avg merge
13h 37m
Merged PRs (30d)
19

Description

Hi,

Can you add support for .decode() method, which simply decodes the token without verifying the signature?
Similar to: https://github.com/auth0/node-jsonwebtoken?tab=readme-ov-file#jwtdecodetoken--options

Happy to contribute and create MR for this feature.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the existing jsonwebtoken API and the requested .decode() entry point, then compare its behavior with the linked node-jsonwebtoken jwt.decode(token, options) documentation. Done means the binding exposes decoding without verifying the signature and matches the referenced behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, rust
Domain
security
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.