Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
46 views

I'm using Nexus with the fieldAuthorizePlugin to add an authorize function to my GraphQL schema fields for handling authentication. While everything works correctly at runtime (with @ts-ignore above ...
Maximilian Fixl's user avatar
0 votes
0 answers
25 views

i am developing a fullstack app with next js. for authentication, I need import User model file in my middleware.ts but when I import this in middleware file, Next.js return this error to me export ...
soheil's user avatar
  • 103
0 votes
1 answer
176 views

We have a Durable Function with multiple orchestrators and activities. We would like to use a middleware as global exception handler instead of handling it in every orchestrator/activity. We can catch ...
mburm's user avatar
  • 1,525
0 votes
1 answer
35 views

Middleware for file upload... // fileUpload.ts import multiparty from 'multiparty'; import { Request, Response, NextFunction } from 'express'; import fs from 'fs'; import { InternalServerError } from '...
Deepak Singh's user avatar
0 votes
0 answers
628 views

I’m working on a project using Next.js middleware for authentication. My app runs on 127.0.0.1:3000, and the backend (FastAPI) is configured to set cookies for 127.0.0.1. Everything works fine until a ...
UmmB's user avatar
  • 1
1 vote
1 answer
99 views

I want to redirect users in my nextjs middleware matcher from "admin" to "login" page, however the redirect doesn't work, i try to match the url with the "/admin" for ...
oliviarizona's user avatar
0 votes
1 answer
344 views

In ASP .NET Core app want to make one of my controllers sessionless. So I do the following: app.UseWhen( context => context.GetRouteValue("controller") is not "SomeValue", app =&...
Slepoyi's user avatar
  • 453
0 votes
1 answer
1k views

So i have a SB app that is trying to integrate with a few event hubs to consume and also produce messages. Reading the Microsoft documentation here i chose the Use Spring Messaging Azure Event Hubs ...
Tudor Cheregi's user avatar
1 vote
0 answers
76 views

I'm working on logging for a simple server. I have enjoyed using fiber middleware. It logs requests beautifully. Then the need to log code came up, so I hooked up logrus. But now my fiber logger only ...
nzrsh's user avatar
  • 19
0 votes
1 answer
177 views

Is there anyone who has had the mixed-content issue, after having deployed a website. I have built an app that uses a Fastapi Backend deployed to Azure Web App and a frontend with NextJs 14 deployed ...
Jnlan 's user avatar
  • 11
3 votes
1 answer
416 views

I'm using Clerk for authentication in my Next.js project, which has both static and dynamic routes. However, I'm encountering an issue because my Clerk middleware file (middleware.ts) does not allow ...
Akshat Bisht's user avatar
-1 votes
2 answers
134 views

I have a app/middleware.ts but it didn't trigger, import { NextResponse, NextRequest } from 'next/server' // This function can be marked `async` if using `await` inside export function middleware(...
hkguile's user avatar
  • 4,387
1 vote
1 answer
110 views

I have two different user roles ( admin, sales-admin) I have created a middleware for each of them to see different views, and it works perfectly. on the other hand, I have some public routes everyone ...
fayza's user avatar
  • 45
0 votes
2 answers
103 views

Given the diagram from Alexu Book of designing Rate-limiter. I am wondering how the 2 way communication between Redis and rate limiter will take place. The 2 way communication has been shown using ...
Kumar Gaurav's user avatar
2 votes
0 answers
44 views

I'm working on a custom middleware for traefik that serves as a base for other sub-middlewares. Each sub-middleware implements an interface and has its own config structure. Here's an outline of my ...
longvanren's user avatar
2 votes
1 answer
99 views

I am working on an event-driven application framework that leverages a middleware pattern to process events dispatched from my service to third party applications. My service models many different ...
fil maj's user avatar
  • 2,312
0 votes
0 answers
107 views

I use rtk-query and I have a mutation query. After the query is executed, some actions are performed in the .then() block and then the error is processed in .catch(). Also, a middleware is written ...
bpGusar's user avatar
  • 124
0 votes
1 answer
47 views

Suppose a user lands on an auth-protected page (say http://localhost:3000/member/profile), my nuxt-base app uses the following middleware to redirect the user to the /login URL: export default ...
TonyW's user avatar
  • 18.9k
2 votes
1 answer
846 views

I have a table in supabase called Users which needs email and authId.I want to update these user data from the clerk. However, I am not able to retrieve the email address from the clerk's middleware. ...
Anteneh Debebe Bekele's user avatar
0 votes
1 answer
56 views

I am using mongoose. I have two models: user and trophies. When I delete user, I want to delete all of its trophies. I am following mongoose library and I have code like it, but it does not work: ...
Mts Cartman's user avatar
1 vote
1 answer
490 views

I want to update my access and refresh tokens in my backend using middleware. When I send a request to my API, I take the token from the context and add it to the authorization header. services....
Alıyev Rufet's user avatar
1 vote
1 answer
746 views

i'm trying to redirect to the login page if my token is undefined however the login page is not showing i think there is a problem with my condition or my matcher This is my function export async ...
Jane's user avatar
  • 11
-1 votes
3 answers
766 views

I'm new to coding and I'm currently working on a project where I'm encountering an error that's preventing me from moving forward. Note that I had to add the Kernel.php file manually because it did ...
Romain Du Boullay's user avatar
0 votes
0 answers
20 views

I have this middleware to change the application's language based on the user's language: public function handle(Request $request, Closure $next): Response { if (Auth::check()) { ...
m.Sarto's user avatar
  • 179
1 vote
1 answer
331 views

I'm using nextjs14 (App Router) with stacked middleware for localization and authentication. For auth, I'm using next-auth v5, and I'm unable to access auth in the Request object. The same code works ...
xXnikosXx's user avatar
  • 389

1 2
3
4 5
94