@adonis-agora/authkit-react
Version:
Frontend ergonomics over AuthKit for AdonisJS + Inertia + React apps: a typed useAuth() hook, role-gating hooks and gating components.
17 lines (16 loc) • 491 B
TypeScript
import { type ResourceState } from './use_resource.js';
export interface AuthorizedApp {
clientId: string;
name?: string;
logoUrl?: string;
scopes?: string[];
authorizedAt?: string;
[key: string]: unknown;
}
export interface UseAuthorizedAppsResult extends ResourceState<AuthorizedApp[]> {
actions: {
refetch(): Promise<void>;
revoke(clientId: string): Promise<void>;
};
}
export declare function useAuthorizedApps(): UseAuthorizedAppsResult;