HackerTube.dev

Securely using JWT on the Edge: Authentication in NextJS Middleware!

Josh tried coding · 42.8K views · 2023-01-05 · 46:44

Open on YouTube ↗

If playback is restricted in your region, try opening the original video. Use Mark watched to add it to your marked videos.

From the video description

Handling JWT-based authentication inside of NextJS middleware is super fast, and very useful but can be a bit tricky to implement. Let's look at best practises for implementing JWT auth inside of NextJS middleware, eliminating the need to call a separate API route to handle the JWT authentication. We'll also pass back the JWT from a tRPC backend route back to the client.

Topics

Search by tags

Sources

Video by Josh tried coding, played through YouTube.

  • Indie Picks
Data and selection notes

Indie Picks uses video metadata for classification. The description above is an uploader excerpt, not an independent review.

Indie Picks: Independently collected SaaS and AI product videos, organized by a founder handbook. Topics and relevance are metadata-indexed; full-video editorial review has not been completed. Descriptions are uploader excerpts where available.

Views, duration and playback status refresh separately from the published catalog. When an update fails, existing data remains visible.

Selection checks
  • SaaS & AI candidates: Matches the configured criteria
  • Editor-approved picks: Editorial review is required

Rule matches identify candidates. They do not guarantee video quality or financial results.

About the library and its sources