mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-15 20:17:22 +00:00
added nextjs detection and added exception for auth redirection to also work inside stackblitz
This commit is contained in:
@@ -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 };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user