feat: add validator for jwt

This commit is contained in:
d3m0k1d
2026-02-14 21:51:44 +03:00
parent 4712604171
commit 2b794f97a3
6 changed files with 183 additions and 6 deletions

View File

@@ -382,6 +382,36 @@ const docTemplate = `{
}
}
}
},
"/session": {
"get": {
"description": "Returns user session data",
"produces": [
"application/json"
],
"tags": [
"auth"
],
"summary": "Get user session",
"responses": {
"200": {
"description": "Session data",
"schema": {
"type": "object",
"additionalProperties": true
}
},
"401": {
"description": "Unauthorized",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
},
"definitions": {