Ajusta check-token
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
import { Controller, Post, Body, HttpCode, HttpStatus, Get, UseGuards } from '@nestjs/common';
|
||||
import {
|
||||
Controller,
|
||||
Post,
|
||||
Body,
|
||||
HttpCode,
|
||||
HttpStatus,
|
||||
Get,
|
||||
UseGuards,
|
||||
} from '@nestjs/common';
|
||||
|
||||
import LoginResponseDto from './dto/loginResponse.dto';
|
||||
|
||||
@@ -31,7 +39,7 @@ export class AuthController {
|
||||
@Get('check-token')
|
||||
@UseGuards(KeycloakAuthGuard)
|
||||
@HttpCode(HttpStatus.OK)
|
||||
async checkToken(): Promise<{ valid: boolean }> {
|
||||
checkToken(): { valid: boolean } {
|
||||
return { valid: true };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user