summaryrefslogtreecommitdiff
path: root/nexus/types/auth/request.go
diff options
context:
space:
mode:
Diffstat (limited to 'nexus/types/auth/request.go')
-rw-r--r--nexus/types/auth/request.go16
1 files changed, 16 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"`
+}