This commit is contained in:
@@ -67,7 +67,17 @@ export class AuthController {
|
||||
@Post("logout")
|
||||
@HttpCode(200)
|
||||
@ApiOperation({ summary: "Logout and invalidate refresh token" })
|
||||
@ApiOkResponse({ description: "Logout successful" })
|
||||
@ApiOkResponse({
|
||||
description: "Logout successful",
|
||||
schema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
success: { type: "boolean" },
|
||||
message: { type: "string" },
|
||||
data: { type: "null" },
|
||||
},
|
||||
},
|
||||
})
|
||||
async logout(
|
||||
@Body() dto: RefreshTokenDto,
|
||||
@I18n() i18n: I18nContext,
|
||||
|
||||
Reference in New Issue
Block a user