Skip to content

Commit

Permalink
fix: fix "login with Weird".
Browse files Browse the repository at this point in the history
Makes sure that the query parameters are added to the /login route when redirecting from /auth/v1/oidc/authorize.
  • Loading branch information
zicklag committed Dec 18, 2024
1 parent 93ae95c commit 47851ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/(app)/auth/v1/oidc/authorize/+server.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { proxy_to_rauthy } from '$lib/rauthy/server';
import { redirect, type RequestHandler } from '@sveltejs/kit';

export const GET: RequestHandler = async () => {
return redirect(303, '/login');
export const GET: RequestHandler = async ({ url }) => {
return redirect(303, `/login${url.search}${url.hash}`);
};

export const fallback = proxy_to_rauthy;

0 comments on commit 47851ab

Please sign in to comment.