mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 22:53:25 +00:00
refactor: use adonis's access tokens instead of creating custom (and unsecured) logic
This commit is contained in:
@@ -1,14 +1,5 @@
|
||||
import { router, usePage } from '@inertiajs/react';
|
||||
|
||||
interface ApiToken {
|
||||
id: number;
|
||||
name: string;
|
||||
token: string;
|
||||
lastUsedAt: string | null;
|
||||
expiresAt: string | null;
|
||||
isActive: boolean;
|
||||
createdAt: string;
|
||||
}
|
||||
import { ApiToken } from '~/types/app';
|
||||
|
||||
export function useApiTokens() {
|
||||
const {
|
||||
|
||||
Reference in New Issue
Block a user