DEV Community

Discussion on: Spring Boot REST API authentication best practices using JWT

Collapse
 
franck_indjongwe_dd11b31d profile image
Franck Indjongwe

i get this error when i try to add a new user

"message": "Cannot invoke \"com.example.spring_api_light.model.User.getUserName()\" because \"user\" is null",
"path": "/auth/register"

Collapse
 
prafful profile image
Prafful Lachhwani

Hi Franck, I have fixed this issue, please check the changes here github.com/prafful98/rest-api-auth...