Login page design

This commit is contained in:
2024-08-04 13:43:09 +02:00
parent 903168a565
commit c30d10e67a
16 changed files with 408 additions and 78 deletions

View File

@@ -0,0 +1,13 @@
import { Schema as S } from "@effect/schema";
import { UserId } from "common";
export const LoginRequest = S.Struct({
username: S.NonEmptyString,
password: S.NonEmptyString,
});
export const LoginResponse = S.Struct({
userId: UserId,
username: S.NonEmptyString,
admin: S.Boolean,
});