@PostMapping("/register") public AuthenticationResponseDto register(@RequestBody Command command) { return authenticationService.register(command); }
@PostMapping("/register") public AuthenticationResponseDto register(@RequestBody Command command) { return authenticationService.register(command); }
public class AuthenticationResponseDto { private String token;}
public class AuthenticationResponseDto { private String token;}
REST Returning token when register and login? Does it make sense? Maybe shouldnt. Why, why not. If not how can i login and have authentication to other endpoints. What return
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
JC|HCL
Java Community | Help. Code. Learn.
We are a Community full of Java developers. Connect with other devs, get help, help others and do much more!