mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 21:06:04 +00:00
updated adapters to automatically verify auth
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
import { getApi } from "bknd/adapter/astro";
|
||||
import Card from "../components/Card.astro";
|
||||
import Layout from "../layouts/Layout.astro";
|
||||
const api = getApi(Astro, { mode: "dynamic" });
|
||||
await api.verifyAuth();
|
||||
const api = await getApi(Astro, { mode: "dynamic" });
|
||||
|
||||
const { data } = await api.data.readMany("todos");
|
||||
const user = api.getUser();
|
||||
|
||||
Reference in New Issue
Block a user