diff options
Diffstat (limited to 'nexus/types/auth')
| -rw-r--r-- | nexus/types/auth/request.go | 16 | ||||
| -rw-r--r-- | nexus/types/auth/response.go | 6 |
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"`
+}
|
