최근 검색


최근 검색 없음

Dane Wheeler's Avatar

Dane Wheeler

가입한 날짜: 2023년 3월 24일

·

마지막 활동: 2023년 4월 18일

팔로잉

0

팔로워

0

총 활동 수

6

투표 수

2

가입 플랜

1

활동 개요

님의 최근 활동 Dane Wheeler

Dane Wheeler님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk SDKs

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님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk SDKs

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님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk SDKs

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

댓글