updated examples: astro, nextjs, remix, bun, node

This commit is contained in:
dswbx
2024-12-23 16:50:26 +01:00
parent a17fd2df67
commit 70e42a02d7
31 changed files with 319 additions and 35 deletions

View File

@@ -35,8 +35,9 @@ export const loader = async (args: LoaderFunctionArgs) => {
// add api to the context
args.context.api = api;
await api.verifyAuth();
return {
user: api.getAuthState().user
user: api.getAuthState()?.user
};
};