In the authorization.go file within the internal/application/presentation/port/command directory, we need to clean up the code by removing an unused import. The import statement for "context" and the protobuf-related code are no longer necessary as the function CheckAuth has been commented out. This change will help maintain cleaner and more maintainable code by eliminating unnecessary dependencies.
The new version of the code:
package application
// AuthorizationCommandPort is a port for Hexagonal Architecture Pattern.
// It is used to communicate with the application layer.
type AuthorizationCommandPort interface {
// CheckAuth returns true if the user is authorized to perform the action.
// CheckAuth(ctx context.Context, authRequest *pb.AuthRequest) (*pb.AuthResponse, error)
}
Additionally, please make sure to push all changes to the feature/hsm/58/auth-service branch.
In the authorization.go file within the
internal/application/presentation/port/command
directory, we need to clean up the code by removing an unused import. The import statement for "context" and the protobuf-related code are no longer necessary as the function CheckAuth has been commented out. This change will help maintain cleaner and more maintainable code by eliminating unnecessary dependencies.The new version of the code:
Additionally, please make sure to push all changes to the feature/hsm/58/auth-service branch.