* feat: oidc feat: organization switcher refactor: org context feat: invitations GLM * feat: link current account * refactor: own page for sso registration * feat: per-user account management * refactor: code style * refactor: user existing check * refactor: restrict provider configuration to super admins only * refactor: cleanup / pr review * chore: fix lint issues * chore: pr feedbacks * test(e2e): automated tests for OIDC * fix: check url first for sso provider identification * fix: prevent oidc provider to be named "credential"
23 lines
557 B
TypeScript
23 lines
557 B
TypeScript
import { createFileRoute } from "@tanstack/react-router";
|
|
import { type } from "arktype";
|
|
import { LoginPage } from "~/client/modules/auth/routes/login";
|
|
|
|
export const Route = createFileRoute("/(auth)/login/error")({
|
|
component: RouteComponent,
|
|
validateSearch: type({ error: "string?" }),
|
|
head: () => ({
|
|
meta: [
|
|
{ title: "Zerobyte - Login Error" },
|
|
{
|
|
name: "description",
|
|
content: "Resolve SSO sign-in errors.",
|
|
},
|
|
],
|
|
}),
|
|
});
|
|
|
|
function RouteComponent() {
|
|
const { error } = Route.useSearch();
|
|
|
|
return <LoginPage error={error} />;
|
|
}
|