@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