mirror of
https://gitlab.w-hs.de/an14051/backerup-website.git
synced 2026-07-27 17:35:29 +00:00
feat: update Docker configuration and .gitignore, remove unused JSON files
This commit is contained in:
+1
-1
@@ -75,7 +75,7 @@ export async function proxy(request: NextRequest) {
|
||||
if (token) {
|
||||
try {
|
||||
const { payload: p } = await jwtVerify(token, getSecretKey(), { algorithms: ['HS256'] })
|
||||
payload = p
|
||||
payload = p as { userId?: string; username?: string; role?: string }
|
||||
} catch {
|
||||
// expired or tampered — treat as unauthenticated
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user