feat!: use elysia js
intead of koa #18
1 changed files with 2 additions and 2 deletions
|
@ -127,8 +127,8 @@ async function authenticate(
|
|||
const secretKey = setting.jwt_secretkey;
|
||||
const accessCookie = cookie[accessTokenName];
|
||||
const refreshCookie = cookie[refreshTokenName];
|
||||
const accessValue = accessCookie?.value;
|
||||
const refreshValue = refreshCookie?.value;
|
||||
const accessValue = typeof accessCookie?.value === 'string' ? accessCookie.value : undefined;
|
||||
const refreshValue = typeof refreshCookie?.value === 'string' ? refreshCookie.value : undefined;
|
||||
|
||||
const guestUser: PayloadInfo = {
|
||||
username: "",
|
||||
|
|
Loading…
Add table
Reference in a new issue