diff --git a/.env.example b/.env.example index 1bc317abb..66d7ef41d 100644 --- a/.env.example +++ b/.env.example @@ -14,5 +14,4 @@ BOT_TOKEN = "123" GUILD_ID = "123" LOCAL_CMS_PROVIDER = true CACHE_EXPIRE_S = 10 -JWT_SECRET_TOKEN="JWT_SECRET_TOKEN" diff --git a/src/app/admin/user/page.tsx b/src/app/admin/user/page.tsx new file mode 100644 index 000000000..420e11ccc --- /dev/null +++ b/src/app/admin/user/page.tsx @@ -0,0 +1,7 @@ +import React from 'react'; + +const page = () => { + return
page
; +}; + +export default page; diff --git a/src/lib/auth.ts b/src/lib/auth.ts index f5622c0b3..f9fdb0da0 100644 --- a/src/lib/auth.ts +++ b/src/lib/auth.ts @@ -3,7 +3,7 @@ import CredentialsProvider from 'next-auth/providers/credentials'; import { SignJWT, importJWK } from 'jose'; const generateJWT = async (payload: any) => { - const secret = process.env.JWT_SECRET_TOKEN || 'secret'; + const secret = process.env.JWT_SECRET || 'secret'; const jwk = await importJWK({ k: secret, alg: 'HS256', kty: 'oct' });