added nextjs detection and added exception for auth redirection to also work inside stackblitz

This commit is contained in:
dswbx
2025-01-11 16:23:20 +01:00
parent d8671355a6
commit b1a32f3705
6 changed files with 65 additions and 18 deletions

View File

@@ -7,7 +7,7 @@ export const meta: MetaFunction = () => {
export const loader = async (args: LoaderFunctionArgs) => {
const api = args.context.api;
const user = (await api.getVerifiedAuthState()).user;
const user = (await api.getVerifiedAuthState(true)).user;
const { data } = await api.data.readMany("todos");
return { data, user };
};