mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
init: nuxt adapter
This commit is contained in:
6
examples/nuxt/app/composables/useUser.ts
Normal file
6
examples/nuxt/app/composables/useUser.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { User } from "bknd";
|
||||
|
||||
export const useUser = () => {
|
||||
const getUser = () => $fetch("/api/auth/me") as Promise<{ user: User }>;
|
||||
return { getUser };
|
||||
};
|
||||
Reference in New Issue
Block a user