最近の検索
最近の検索はありません

Dane Wheeler
参加日2023年3月24日
·
前回のアクティビティ2023年4月18日
フォロー中
0
フォロワー
0
合計アクティビティ
6
投票
2
サブスクリプション
1
アクティビティの概要
バッジ
記事
投稿
コミュニティへのコメント
記事へのコメント
アクティビティの概要
さんの最近のアクティビティ Dane Wheeler
Dane Wheelerさんがコメントを作成しました:
Manuel Moreira this sounds like a different issue than an expired JWT. For reference, below is what a working JWT looks like for my app. Perhaps you can compare yours to it to confirm you have the right header, field names, and data types.
コメントを表示 · 投稿日時:2023年4月18日 · Dane Wheeler
0
フォロワー
0
投票
0
コメント
Dane Wheelerさんがコメントを作成しました:
Manuel Moreira did you try parsing your JWT and confirming it is properly formed? Try copy/pasting your JWT into https://jwt.io to make sure it is valid.
コメントを表示 · 投稿日時:2023年4月18日 · Dane Wheeler
0
フォロワー
0
投票
0
コメント
Dane Wheelerさんがコメントを作成しました:
Check that your token is not expired. The "exp" field is specified in seconds since the UNIX epoch, so a token with exp = 12345678 expired sometime around February 1971. In TypeScript with the jsonwebtoken library, you could do something like:
import jwt, { SignOptions } from "jsonwebtoken";
const header = {
alg:"HS256",
typ:"JWT",
kid:zenDeskKid,
};
const options: SignOptions = {
header,
expiresIn: 60 * 60 * 6, // <-- this will convert to UNIX epoch time
};
const payload = {
scope:"user",
name: ...,
email: ... ,
external_id: ...,
};
var token = jwt.sign(payload, zenDeskSecret, options);
コメントを表示 · 投稿日時:2023年3月24日 · Dane Wheeler
0
フォロワー
0
投票
0
コメント