redirect to api key page when access gateway in browser

This commit is contained in:
miloschwartz
2026-08-12 11:15:50 -04:00
parent 833b27ab4a
commit 379b53bcca
4 changed files with 36 additions and 7 deletions
@@ -41,7 +41,9 @@ export default async function ResourceKeysPage(props: ResourceKeysPageProps) {
const user = await getUser();
if (!user) {
redirect("/");
redirect(
`/auth/login?redirect=/${orgId}/resource/${resourceGuid}/keys`
);
}
const cookieHeader = await authCookieHeader();