Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -0,0 +1,21 @@
|
||||
import type { LoaderFunctionArgs } from "react-router";
|
||||
import { redirect } from "react-router";
|
||||
|
||||
import { consumeSessionHandoff } from "~/services/auth/session-handoff.server";
|
||||
|
||||
export async function loader({ request }: LoaderFunctionArgs): Promise<Response> {
|
||||
const response = await consumeSessionHandoff(request, new URL(request.url).searchParams.get("code"));
|
||||
if (response) {
|
||||
return response;
|
||||
}
|
||||
return redirect("/login?error=session_handoff_invalid", {
|
||||
headers: {
|
||||
"Cache-Control": "no-store",
|
||||
"Referrer-Policy": "no-referrer",
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
export default function SessionHandoffRoute() {
|
||||
return null;
|
||||
}
|
||||
Reference in new issue
Block a user