mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-04 00:56:01 +00:00
updated examples: astro, nextjs, remix, bun, node
This commit is contained in:
@@ -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
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user