mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-09 23:15:36 +00:00
feat: add auth via google
This commit is contained in:
4
inertia/types/app.d.ts
vendored
Normal file
4
inertia/types/app.d.ts
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { Serialize } from '@tuyau/utils/types';
|
||||
import type UserModel from '../../app/models/user';
|
||||
|
||||
type User = Serialize<UserModel>;
|
||||
8
inertia/types/inertia.d.ts
vendored
Normal file
8
inertia/types/inertia.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import type { User } from './app';
|
||||
|
||||
export type InertiaPage<T extends Record<string, unknown> = Record<string, unknown>> = T & {
|
||||
auth: {
|
||||
user?: User;
|
||||
isAuthenticated: boolean;
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user