summaryrefslogtreecommitdiff
path: root/nexus/types/auth
diff options
context:
space:
mode:
authorBobby <[email protected]>2026-03-29 22:52:46 +0530
committerBobby <[email protected]>2026-03-29 22:52:46 +0530
commit9eb9b7f4bd552a641235764f66483e1f940fcfd9 (patch)
treeda520b923b5e6758d5457b6233dd6671fc640914 /nexus/types/auth
parent65a143a0871c35989b7c7ea6723d39a0585c089e (diff)
downloadechoes-of-vaelun-main.tar.xz
echoes-of-vaelun-main.zip
feat: nexus account manager scaffold with auth, characters, realmsHEADmain
Diffstat (limited to 'nexus/types/auth')
-rw-r--r--nexus/types/auth/request.go16
-rw-r--r--nexus/types/auth/response.go6
2 files changed, 22 insertions, 0 deletions
diff --git a/nexus/types/auth/request.go b/nexus/types/auth/request.go
new file mode 100644
index 0000000..ce821cc
--- /dev/null
+++ b/nexus/types/auth/request.go
@@ -0,0 +1,16 @@
+package auth
+
+type RegisterRequest struct {
+ Username string `json:"username"`
+ Email string `json:"email"`
+ Password string `json:"password"`
+}
+
+type LoginRequest struct {
+ Email string `json:"email"`
+ Password string `json:"password"`
+}
+
+type RefreshRequest struct {
+ RefreshToken string `json:"refresh_token"`
+}
diff --git a/nexus/types/auth/response.go b/nexus/types/auth/response.go
new file mode 100644
index 0000000..718fb97
--- /dev/null
+++ b/nexus/types/auth/response.go
@@ -0,0 +1,6 @@
+package auth
+
+type TokenResponse struct {
+ AuthToken string `json:"auth_token"`
+ RefreshToken string `json:"refresh_token"`
+}