Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
In Nextjs how do you set serachParams in middleware ? - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
2y ago
•
16 replies
AlexNotTheLion
In Nextjs how do you set serachParams in middleware ?
currently in my middleware im trying to add a user agent viewport serachParam to requests as seen in the nextjs docs here
:
https://nextjs.org/docs/app/api-reference/functions/userAgent
, however supabase my auth provider also has middleware to validate cookies seen here
:
https://www.youtube.com/watch?v=v6UvgfSIjQ0
, is it possible to merge these two and have a response return with my serachParams
Functions: userAgent | Next.js
The userAgent helper extends the Web Request API with additional properties and methods to interact with the user agent object from the request
.
YouTube
Supabase
The Right Way to do Auth with the Next.js App Router - UPDATED
Authentication is essential for modern app development
! In this video
, Jon Meyers configures Supabase Auth to use cookies
, and implements OAuth using GitHub in an Email Client
, written with the Next
.js App Router
.
https://supabase.com/docs/guides/auth/social-login/auth-github
The Next
.js App Router blurs the lines between Client and Server
, th
.
.
.
Theo's Typesafe Cult
Join
26,564
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How do you get the session in middleware?
TTC
Theo's Typesafe Cult / questions
17mo ago
NextJS middleware
TTC
Theo's Typesafe Cult / questions
4y ago
how to do routing in nextjs?
TTC
Theo's Typesafe Cult / questions
3y ago
How do you get access to the session in the middleware
TTC
Theo's Typesafe Cult / questions
3y ago