UNPKG

@solfacil/plasma-utils

Version:

- 💚 [Nuxt 3](https://nuxt.com/) - Compatible with Nuxt 3 - 🍞 [BUN](https://bun.sh/) - A fast JavaScript all-in-one toolkit (runtime, bundler, test runner, package manager). - 🔑 [Keycloak](https://www.keycloak.org/) integration. - ⚡️ Vite - Instant HMR.

11 lines (10 loc) 419 B
import type { FetchResponse } from 'ofetch'; import { AuthToken } from '../types'; export declare function useKeycloak(): { onAuthenticate: (callback: () => void) => void; onObtainToken: (callback: (token: AuthToken) => void) => void; check: () => Promise<void | FetchResponse<any>> | undefined; refreshToken: () => Promise<void>; isAuthenticated: () => boolean; logout: () => Promise<void>; };