mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-08-31 13:07:12 -05:00
22 lines
377 B
TypeScript
22 lines
377 B
TypeScript
import { z } from 'zod';
|
|
|
|
export interface GetApiAuthMe {
|
|
pid: number;
|
|
username: string;
|
|
mii: {
|
|
imageUrl: string;
|
|
name: string;
|
|
} | null;
|
|
}
|
|
|
|
export type ApiAuthLogin = {
|
|
accessToken: string;
|
|
refreshToken: string;
|
|
};
|
|
|
|
export const LoginSchema = z.object({
|
|
username: z.string(),
|
|
password: z.string()
|
|
});
|
|
export type ApiAuthLoginRequest = z.infer<typeof LoginSchema>;
|