feat: add validator for jwt
This commit is contained in:
@@ -272,6 +272,26 @@ paths:
|
||||
summary: Update post
|
||||
tags:
|
||||
- posts
|
||||
/session:
|
||||
get:
|
||||
description: Returns user session data
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: Session data
|
||||
schema:
|
||||
additionalProperties: true
|
||||
type: object
|
||||
"401":
|
||||
description: Unauthorized
|
||||
schema:
|
||||
additionalProperties:
|
||||
type: string
|
||||
type: object
|
||||
summary: Get user session
|
||||
tags:
|
||||
- auth
|
||||
securityDefinitions:
|
||||
Bearer:
|
||||
description: Type "Bearer" followed by a space and the JWT token.
|
||||
|
||||
Reference in New Issue
Block a user