stack icon indicating copy to clipboard operation
stack copied to clipboard

Custom handler routes not working as expected

Open prgueza opened this issue 2 months ago • 1 comments

Description

I'm trying to move around the handler routes from the default folder (handler/[...stack]) to a different route (auth/[...stack]).

I've configured the StackServerApp urls to be as follows:

export const stackServerApp = new StackServerApp({
  // ...
  urls: {
    handler: "/auth"
  },
});

The signin and signup pages show correctly, but when I try to login using OAuth I get redirected to the following url:

http://localhost:3000/handler/oauth-callback

I would expect to be redirected to http://localhost:3000/auth/oauth-callback instead.

Packages

  • @stackframe/stack: ^2.8.47
  • next: 16.0.0

prgueza avatar Oct 28 '25 07:10 prgueza

Did you configure stackClientApp with your custom-handler too? I'm guessing that could be the reason.

ArvindParekh avatar Nov 18 '25 00:11 ArvindParekh