@@ -74,71 +74,6 @@ const docTemplate = `{
7474 }
7575 }
7676 },
77- "/auth/login-identifier": {
78- "post": {
79- "description": "Handles the login process for a user with identifier (email, phone, username)",
80- "consumes": [
81- "application/json"
82- ],
83- "produces": [
84- "application/json"
85- ],
86- "tags": [
87- "Auth"
88- ],
89- "summary": "Login with identifier",
90- "parameters": [
91- {
92- "description": "Login request body",
93- "name": "body",
94- "in": "body",
95- "required": true,
96- "schema": {
97- "$ref": "#/definitions/models.BodyLoginRequest"
98- }
99- },
100- {
101- "type": "string",
102- "description": "Device ID",
103- "name": "X-Device-Id",
104- "in": "header",
105- "required": true
106- }
107- ],
108- "responses": {
109- "200": {
110- "description": "OK",
111- "schema": {
112- "$ref": "#/definitions/models.LoginResponse"
113- }
114- },
115- "400": {
116- "description": "Bad Request",
117- "schema": {
118- "$ref": "#/definitions/response.ErrorResponse"
119- }
120- },
121- "401": {
122- "description": "Unauthorized",
123- "schema": {
124- "$ref": "#/definitions/response.ErrorResponse"
125- }
126- },
127- "403": {
128- "description": "Forbidden",
129- "schema": {
130- "$ref": "#/definitions/response.ErrorResponse"
131- }
132- },
133- "500": {
134- "description": "Internal Server Error",
135- "schema": {
136- "$ref": "#/definitions/response.ErrorResponse"
137- }
138- }
139- }
140- }
141- },
14277 "/auth/register": {
14378 "post": {
14479 "description": "Handles the registration process for a user",
@@ -770,7 +705,7 @@ const docTemplate = `{
770705 }
771706 },
772707 "/user/logout": {
773- "post ": {
708+ "get ": {
774709 "description": "Logs out a user",
775710 "consumes": [
776711 "application/json"
@@ -1075,22 +1010,6 @@ const docTemplate = `{
10751010 }
10761011 }
10771012 },
1078- "models.BodyLoginRequest": {
1079- "type": "object",
1080- "required": [
1081- "identifier",
1082- "password"
1083- ],
1084- "properties": {
1085- "identifier": {
1086- "type": "string"
1087- },
1088- "password": {
1089- "type": "string",
1090- "minLength": 6
1091- }
1092- }
1093- },
10941013 "models.BodyLoginSocialRequest": {
10951014 "type": "object",
10961015 "required": [
@@ -1205,6 +1124,9 @@ const docTemplate = `{
12051124 "email": {
12061125 "type": "string"
12071126 },
1127+ "expired_at": {
1128+ "type": "string"
1129+ },
12081130 "id": {
12091131 "type": "integer"
12101132 },
@@ -1299,6 +1221,9 @@ const docTemplate = `{
12991221 "email": {
13001222 "type": "string"
13011223 },
1224+ "expires_at_token": {
1225+ "type": "string"
1226+ },
13021227 "id": {
13031228 "type": "integer"
13041229 },
0 commit comments