Loading...
Loading...
Compare original and translation side by side
npm install jsonwebtokensrc/auth.ts:42npm install jsonwebtokensrc/auth.ts:421. Open `src/auth.ts`
2. Replace `verifyToken` (lines 42 to 58) with the snippet below
3. Run `npm test -- auth.spec.ts`1. 打开 `src/auth.ts`
2. 将第42至58行的 `verifyToken` 替换为下方的代码片段
3. 运行 `npm test -- auth.spec.ts`npm testnpm testnpm run dev/loginnpm run dev/loginauth.spec.ts:42Authorization: Bearer ${token}auth.spec.ts:42Authorization: Bearer ${token}rm -rfrm -rf