diff --git a/src/main/kotlin/com/example/onui/domain/auth/presentation/AuthController.kt b/src/main/kotlin/com/example/onui/domain/auth/presentation/AuthController.kt index 2e6447a..41e034c 100644 --- a/src/main/kotlin/com/example/onui/domain/auth/presentation/AuthController.kt +++ b/src/main/kotlin/com/example/onui/domain/auth/presentation/AuthController.kt @@ -66,7 +66,7 @@ class AuthController( @PostMapping("/device") fun applyDevieceToken( @RequestParam(name = "token", required = true) - @Valid @NotBlank - token: String - ) { authService.applyDeviceToken(token) } + @Valid @NotBlank(message = "null일 수 없습니다.") + token: String? + ) { authService.applyDeviceToken(token!!) } } \ No newline at end of file