Files
brain/internal/auth/auth.go
T
Andrew S Erwin b9721ff13f
release gate / check (push) Failing after 8m35s
initial commit on Federted servers
2026-10-19 16:23:55 -05:00

21 lines
628 B
Go

package auth
type SigninRequest struct {
Email string `json:"email"`
Password string `json:"password"`
}
type SignupRequest struct {
Email string `json:"email"`
Password string `json:"password"`
Name string `json:"name"`
}
// SignupResponse is deliberately value-identical for every accepted
// registration attempt (review CR-03): a populated internal identifier used
// to distinguish a fresh account from a duplicate/reserved address, which is
// an unauthenticated existence oracle. Ownership is established by logging
// in; /api/me then reports the id.
type SignupResponse struct {
OK bool `json:"ok"`
}