Renamed `user` to `payload` for better context clarity and updated related references. Adjusted the login token generation to use `workspace.id`, improving readability and maintainability of the code.