feat: add auth via google

This commit is contained in:
Sonny
2024-04-27 18:14:40 +02:00
committed by Sonny
parent 2531242615
commit df4185bd62
18 changed files with 450 additions and 46 deletions

4
inertia/types/app.d.ts vendored Normal file
View 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
View 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;
};
};