Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Safe password resets with json web tokens - Invalid token when decoding

オープン
#776 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript, node.js

調査の方向性

ソースファイルもテストも指定されていません。まず、issue に記載されたパスワードリセットトークンのデコードフローを jsonwebtoken 8.5.1 で再現し、次に報告された catch で捕捉されたエラーを調べてください。トークンが拒否される理由を特定し、焦点を絞った再現によってその挙動を確認できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Description

I am trying to put in place a safe password resets with json web tokens flow, where the first step of the forgot password flow is:

image

... the user is receiving an email with the reset link, the URL contains two query string parameters (token and email):

image

I believe this encode part is working fine, where I am having problems is in the second step:

image

all 3 previous console logs are printed with the expected data, but this one don't console.log('4. user =================>', user) where the catch error is turning back:

image

Environment

Please provide the following:

  • Version of this library used:
jsonwebtoken: ^8.5.1
主要言語
JavaScript
スター
18.2k
フォーク
1.3k
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

auth0/node-jsonwebtoken のほかの issue

auth0/node-jsonwebtoken の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。