
Completed
Posted
Paid on delivery
I have a [login to view URL] application already running on Vercel with a Neon Postgres backend and now I need robust, token-based authorization added. I’ve chosen Auth0 as the authentication provider and I want three specific roles wired in—Admin, User, and Moderator—so that each API route and page can be gated appropriately. Here’s what I need completed: • Configure Auth0 for my domain, turn on JWT access tokens, and store any needed secrets safely in Vercel’s environment variables. • Create a clean, reusable auth utility in the [login to view URL] codebase that decodes the token once, attaches it to the request context, and exposes role information throughout the app. • Protect server actions, API routes, and client pages so that Admin-only dashboards, Moderator tools, and normal User areas respect the role rules. • Provide a sample role management script or SQL migration for Neon that lets me assign Admin, User, or Moderator flags to any account. • Add a simple middleware check that redirects unauthenticated visitors to the login page and returns 401/403 JSON for API calls when roles don’t match. • Ship concise README notes on how to test locally (dev keys) and how to promote the setup to production on Vercel. Acceptance criteria: logging in through Auth0 issues a JWT containing role claims; hitting /admin without the Admin role shows “Access denied”; updating a user’s role in the database is immediately reflected on the next token refresh; all secrets are loaded from Vercel’s dashboard, not hard-coded. The code is in a private GitHub repo; once you accept the job I’ll add you. A clean, documented PR that I can merge without breaking the current build will mark the job complete.
Project ID: 40511332
41 proposals
Remote project
Active 6 days ago
Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

Wiring Auth0 roles into a [login to view URL] + Neon stack so that JWTs carry role claims and every route respects them — I've implemented this exact pattern multiple times. I'll configure Auth0 with a post-login Action that injects Admin/User/Moderator claims into the access token, then build a reusable auth utility in your codebase that decodes the JWT once via middleware, attaches role context, and gates server actions, API routes, and pages accordingly. For Neon, I'll provide a clean SQL migration for role assignment that syncs with Auth0 via a custom Action, so role changes reflect on the next token refresh. All secrets go into Vercel env vars, and you'll get a concise README covering local dev setup and production promotion. I can start immediately.
€8 EUR in 1 day
7.0
7.0
41 freelancers are bidding on average €22 EUR for this job

Interesting project, I will configure Auth0 with JWT role claims, wire Admin, Moderator, and User gates across your API routes, server actions, and pages, and store all secrets in Vercel env variables. A reusable middleware utility will decode tokens once and attach role context app-wide. I will use Auth0 Actions to inject role claims directly into the JWT so database role updates reflect on the next token refresh without extra API calls. Questions: 1) Are you using the App Router or Pages Router? 2) Any existing session handling to preserve? Looking forward to potentially working together. Thanks, Kabir Ali.
€9 EUR in 3 days
0.0
0.0

All 999 LLM routing attempts exhausted. Last error: Provider unavailable, no API key, or premium not allowed
€50 EUR in 7 days
0.0
0.0

Cork, Ireland
Payment method verified
Member since Jun 13, 2026
₹12500-37500 INR
$1500-3000 USD
$10-30 USD
₹1500-12500 INR
$250-750 USD
₹1500-12500 INR
$250-750 USD
₹1500-12500 INR
$10-30 USD
$750-1500 CAD
$10-40 USD
$30-250 USD
₹12500-37500 INR
$3000-5000 USD
$250-750 USD
$50-150 USD
$15-25 USD / hour
£20-250 GBP
₹3000-7000 INR
₹750-1250 INR / hour